CloudMade/Leaflet — pull request #837 by mattcurrie (2012-07-27 02:47:29+00:00)
Title: Add zIndex support to L.TileLayer

I had a problem where I needed to have three tile layers displayed in a strict order:

- base map layer (L.TileLayer)
- street overlay (L.TileLayer.WMS)
- marker overlay (L.TileLayer.WMS)

The street and marker WMS overlays can be toggled on and off by the user, so having a z-index set on each layer allows this order to be maintained as they are added and removed from the map.