UNPKG

mohsen-angular-leaflet-directive

Version:

angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps

34 lines 1.17 kB
app.controller("GoogleMapsController", [ "$scope", function($scope) { angular.extend($scope, { berlin: { lat: 52.52, lng: 13.40, zoom: 14 }, markers: { m1: { lat: 52.52, lng: 13.40 } }, layers: { baselayers: { googleTerrain: { name: 'Google Terrain', layerType: 'TERRAIN', type: 'google' }, googleHybrid: { name: 'Google Hybrid', layerType: 'HYBRID', type: 'google' }, googleRoadmap: { name: 'Google Streets', layerType: 'ROADMAP', type: 'google' } } } }); }]);