1

How do you add a wmts layer from the USGS basemaps found here as a mapbox-gl-js layer?:

https://viewer.nationalmap.gov/services/

1 Answer 1

3

Here's what I used:

'https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/WMTS/tile/1.0.0/USGSImageryOnly/default/GoogleMapsCompatible/{z}/{y}/{x}'

I found this answer buried in the code here: https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/master/AzureMapsCodeSamples/Tile%20Layers/WMTS%20Tile%20Layer.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.