-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(layers): Add Esri tile map layer
Added support for esri tile map layer - add esri tile map layer type - add examples for esri tile map layer
- Loading branch information
Showing
10 changed files
with
171 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html ng-app="demoapp"> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<script src="../bower_components/angular/angular.min.js"></script> | ||
<script src="../bower_components/leaflet/dist/leaflet.js"></script> | ||
<script src="../bower_components/esri-leaflet/dist/esri-leaflet.js"></script> | ||
<script src="../dist/angular-leaflet-directive.min.js"></script> | ||
<link rel="stylesheet" href="../bower_components/leaflet/dist/leaflet.css" /> | ||
<script> | ||
var app = angular.module("demoapp", ["leaflet-directive"]); | ||
app.controller("LayersEsriTileMapLayerController", [ "$scope", function($scope) { | ||
angular.extend($scope, { | ||
center: { | ||
lat: 30.70, | ||
lng: -81.47, | ||
zoom: 9 | ||
}, | ||
layers: { | ||
baselayers: { | ||
historic: { | ||
name: "Historic Topographic Maps", | ||
type: "agsTile", | ||
url: "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer", | ||
visible: false | ||
}, | ||
navigation: { | ||
name: "World Navigation Charts", | ||
type: "agsTile", | ||
url: "http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/World_Navigation_Charts/MapServer", | ||
visible: false | ||
} | ||
} | ||
}, | ||
|
||
}); | ||
}]); | ||
</script> | ||
</head> | ||
<body ng-controller="LayersEsriTileMapLayerController"> | ||
<leaflet center="center" layers="layers" width="100%" height="480px"></leaflet> | ||
<h1>Esri ArcGIS Tile Map Layer</h1> | ||
<p>Use the Layer Switch Control on the top rigth of the map to show another Esri Tile Map Layers.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
examples/js/controllers/LayersEsriTileMapLayerController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
app.controller("LayersEsriTileMapLayerController", [ "$scope", function($scope) { | ||
angular.extend($scope, { | ||
center: { | ||
lat: 30.70, | ||
lng: -81.47, | ||
zoom: 9 | ||
}, | ||
layers: { | ||
baselayers: { | ||
historic: { | ||
name: "Historic Topographic Maps", | ||
type: "agsTile", | ||
url: "http://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer", | ||
visible: false | ||
}, | ||
navigation: { | ||
name: "World Navigation Charts", | ||
type: "agsTile", | ||
url: "http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/World_Navigation_Charts/MapServer", | ||
visible: false | ||
} | ||
} | ||
}, | ||
}); | ||
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters