Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add USGS National Map tiles #367

Merged
merged 1 commit into from
Oct 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
'Esri WorldGrayCanvas': L.tileLayer.provider('Esri.WorldGrayCanvas'),
'Geoportail France Maps': L.tileLayer.provider('GeoportailFrance'),
'Geoportail France Orthos': L.tileLayer.provider('GeoportailFrance.orthos'),
'Geoportail France classic maps': L.tileLayer.provider('GeoportailFrance.ignMaps')
'Geoportail France classic maps': L.tileLayer.provider('GeoportailFrance.ignMaps'),
'USGS USTopo': L.tileLayer.provider('USGS.USTopo'),
'USGS USImagery': L.tileLayer.provider('USGS.USImagery'),
'USGS USImageryTopo': L.tileLayer.provider('USGS.USImageryTopo'),
};

var overlayLayers = {
Expand Down
16 changes: 16 additions & 0 deletions leaflet-providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,22 @@
Grey: 'Grey',
LandLot: 'LandLot'
}
},
USGS: {
url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}',
options: {
maxZoom: 20,
attribution: 'Tiles courtesy of the <a href="https://usgs.gov/">U.S. Geological Survey</a>'
},
variants: {
USTopo: {},
USImagery: {
url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}'
},
USImageryTopo: {
url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}'
}
}
}
};

Expand Down