Skip to content

Commit 0d2b092

Browse files
author
Peter
committed
added esri imagery tiles layer
1 parent 9ce52ca commit 0d2b092

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/src/main/webapp/js/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,18 @@ function initMap(selectLayer) {
363363
subdomains: ['a', 'b', 'c']
364364
});
365365

366+
var mapLink = '<a href="http://www.esri.com/">Esri</a>';
367+
var wholink = 'i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community';
368+
var esriAerial = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
369+
attribution: osmAttr + '&copy; ' + mapLink + ', ' + wholink,
370+
maxZoom: 18
371+
});
372+
366373
var baseMaps = {
367374
"Lyrk": lyrk,
368375
"MapQuest": mapquest,
369376
"MapQuest Aerial": mapquestAerial,
377+
"Esri Aerial": esriAerial,
370378
"OpenMapSurfer": openMapSurfer,
371379
"TF Transport": thunderTransport,
372380
"TF Cycle": thunderCycle,

0 commit comments

Comments
 (0)