mohsen-angular-leaflet-directive
Version:
angular-leaflet-directive - An AngularJS directive to easily interact with Leaflet maps
30 lines • 1 kB
JavaScript
app.controller("LayersEsriImageLayerController", [ "$scope", function($scope) {
angular.extend($scope, {
center: {
lat: 43.415,
lng: -124.228,
zoom: 13
},
layers: {
baselayers: {
gray: {
name: "Gray",
type: "agsBase",
layer: "Gray",
visible: false
}
},
overlays: {
infrared: {
name: "Infrared Imagery",
type: "agsImage",
url: "http://imagery.oregonexplorer.info/arcgis/rest/services/NAIP_2011/NAIP_2011_Dynamic/ImageServer",
visible: true,
layerOptions: {
bandIds: "3,0,1"
}
}
}
},
});
}]);