Ideas and Suggestions for Leaflet
Leaflet UserVoice is a place for you to show support for your favorite feature and improvement suggestions for Leaflet.
- Please don’t add duplicates of existing ideas.
- Please don’t report issues with map data — they have nothing to do with Leaflet and will be declined. It uses OpenStreetMap on the website examples.
- If you need to report a bug, please use GitHub issues instead.
-
Layer order control
Ability to easily control the z-index order of tile and vector layers.
150 votesThe problem with this feature is that SVG doesn’t support z-index ordering by design. The only way to do this is to reorder DOM objects, which is quite inefficient if you want precise control. It’s even worse in Canvas where you have to rerender all layers in the correct order.
In the current master version, I’ve implemented bringToBack and bringToFront methods for both vector and tile layers which should satisfy most of the use cases here, but will continue designing a more sophisticated solution.
- Don't see your idea?