<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> <style> .view { position:absolute; top:0; left:0; right:0; bottom:0; } .angular-leaflet-map { height : 100%; } </style> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> </head> <body ng-app="app"> <div class="view" ng-controller="mapCtrl"> <leaflet center="map.center"> </leaflet> </div> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.21/angular.min.js"></script> <script src="http://rawgit.com/tombatossals/angular-leaflet-directive/master/dist/angular-leaflet-directive.min.js"></script>
<script> var app = angular.module("app", ["leaflet-directive"]);
app.controller("mapCtrl", ["$scope", function($scope) { $scope.map = { center: { lat: 45.0, lng: -74.8, zoom: 13 } }; }]); </script> </body></html>