Ticket #1011 (closed feature: duplicate)
Ordered markers layer
|Reported by:||pdeffendol||Owned by:||euzuro|
Currently when markers are added to a map, the resulting HTML generated is inserted into the document in the same order as the markers are added. It would be nice to be able to generate the HTML such that the markers are ordered from the top to the bottom of the map.
For example, consider a map marker that looks like a signpost. (Think Google maps markers.) Markers that are farther "down" the map should show up "in front of" markers that are farther "up" so as not to ruin the signpost effect.
I can do this on the server side, and pre-sort the markers by lat/long, but ideally they would be sorted on the client size by x/y pixel values.
This could either be done via z-index or inserting the HTML into the document in the appropriate place, instead of appending.