leaflet-extras/leaflet-providers

Adding USGS The National Map basemaps

sdbowman opened this issue · 10 comments

Please add the USGS The National Map topographic, imagery, and imagery + topographic basemaps to the providers list. The additional code for leaflet-providers.js is below:

USGSTNM: {
url: 'https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x}',
options: {
maxZoom: 20,
attribution: 'U.S. Department of the Interior | U.S. Geological Survey'
},
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}'
}
}
}

Feel free to provide a PR for that, but before check the TOS of the provider please.

Thx for the feeback @sdbowman :) Would you like to send a PR or do you prefer i do that for you ?

By the way, nice to see that this project is used by geological users, i've been working around this topic for https://github.com/geodiversite/geodiversite/ and playing with this kind of data on https://tiles.kupaia.fr/ :)

Ok, i'll use USGS for base name and a simpler credits as mentioned on https://www.usgs.gov/information-policies-and-instructions/copyrights-and-credits

They all return 404 error, even on the provider preview page.

@sdbowman do you have any infos about this ?

Nice, thx for the feedback @sdbowman :)