-1

https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/7

This is the info I want in a tile layer but I don’t know what URL to use.

Can someone explain how I can generate the URL for Leaflet?

I am trying to find mapserver urls for the following maps:

https://gis.blm.gov/arcgis/rest/services/lands

enter image description here

I believe arc-gis has the maps but I cannot find the actual tile urls to use.

4

1 Answer 1

0

You need to use URLs for the WMS or WMTS links from the ArcGIS REST Services Directory pages.

Looking at https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer

The WMS link is for the GetCapabilities response:

https://gis.blm.gov/arcgis/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/WMSServer?request=GetCapabilities&service=WMS

and you will need just the URL minus query parameters for Leaflet: https://gis.blm.gov/arcgis/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/WMSServer?

For WMTS you have two options depending on whether you want to use KVP or 'RESTful' options.

You need to look at the GetCapabilities response to get your options

https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/WMTS/1.0.0/WMTSCapabilities.xml

KVP use: https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/WMTS?

'RESTful' use: https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/WMTS/tile/1.0.0/

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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