1

I added some geojson layers on my map but they are ordred in the menu randomly. enter image description here

for example I like Zones to be above Bus line how to control this. here my example

1 Answer 1

2

I recently solved this by working with Panes in Leaflet.js

http://leafletjs.com/examples/map-panes/

I can use this with any type of layer that I add to a Leaflet.js map. Very handy!

2
  • Please show me how in my plunker example because I still not making it.
    – Rabie Ben
    Commented Jul 2, 2017 at 15:06
  • I am using Leaflet 0.7.5 wich does not have panes function.
    – Rabie Ben
    Commented Jul 2, 2017 at 16:43

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.