I have two circlemarkers
, A and B, at the same place
Demo
I'd like marker B to move to the front when I select marker A, and vice versa.
Use the methods bringToFront()
and bringToBack()
, as noted here in the Leaflet API: http://leafletjs.com/reference.html#path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With