I want to display separate layers from this ArcGIS Server with LeafletJS from this server https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_with_PriUnk/MapServer

I can display all layers as raster tiles in Leaflet with this link https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_without_PriUnk/MapServer/tile/{z}/{y}/{x}

But I want to display only US Forest Service (USFS). Is it possible to display it as a raster tile?

As I understand I need to use dynamiclayer option. I tried to use generateKml, but it still returns all layers, despite I select only one.

  • 1
    Removed tag Leaflet since question itself is in no way connected with Leaflet.
    – TomazicM
    May 4, 2022 at 9:44
  • 1
    Try gis.blm.gov/arcgis/rest/services/lands/…. 9 is the index for US Forest Service. It's a polygon so not sure how you can display it as a raster. May 4, 2022 at 15:04

1 Answer 1


https://gis.blm.gov/arcgis/rest/services/lands/BLM_Natl_SMA_Cached_with_PriUnk/MapServer is a cached (sometimes called a tiled) service. Notice how the metadata says Map Cache: true. You cannot access a tiled service as a dynamic service.

You can however request each layer as features, and then use L.esri.featureLayer.

Your Answer

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

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