Esri / esri-leaflet

A lightweight set of tools for working with ArcGIS services in Leaflet. :rocket:
https://developers.arcgis.com/esri-leaflet/
Apache License 2.0
1.61k stars 799 forks source link

L.tileLayer.wms vs L.esri.dynamicMapLayer layer index #1129

Closed defineconst closed 6 years ago

defineconst commented 6 years ago

I have two layers , L.tileLayer.wms and L.esri.dynamicMapLayer,I want to use L.esri.dynamicMapLayer as base layer , then put L.tileLayer.wms layer on it. but L.tileLayer.wms layer on the bottom,L.esri.dynamicMapLayer on the top. How I can resolve it. thank you very much.

jgravois commented 6 years ago

the appropriate way to get control over the draw order of layers in a Leaflet app is map panes

https://leafletjs.com/reference-1.3.4.html#tilelayer-wms-pane http://esri.github.io/esri-leaflet/api-reference/layers/dynamic-map-layer.html#options

jgravois commented 6 years ago

closing as a duplicate of #739, #753, #923, #1000, #1073