4

I'm plotting out markers from GeoJSON files onto my Leaflet map. Some of these markers overlap so now I want to control the order of appearance of these markers so that one type always sits above the others. How do I do this? Is it possible?

The marker that I want to be on top of everything is also moving around in the map (see url below). I've noticed that sometimes it's above the other markers and sometimes below.

I tried creating layer groups but nothing really happened...?

Here's the map: http://www.oskarlin.com/hike2013/

5

Try setting zIndex of L.Marker with this method.

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.