I would like to have certain layers to be always on top of others, no matter in which order they are added to the map.
I am aware of bringToFront(), but it doe
This is one of the reason for the implementation of user defined "panes" in Leaflet 1.0 (compared to versions 0.x).
var myPane = map.createPane("myPaneName")myPane.style.zIndex = 450 (refer to z-index values of built-in panes)L.rectangle(corners, { pane: "myPaneName" })L.geoJSON factory, you can loop through your features with the onEachFeature option to clone your layers with specified target pane.Demo: https://jsfiddle.net/3v7hd2vx/90/