[OpenLayers-Trac] [OpenLayers] #1011: Ordered markers layer
OpenLayers
trac at openlayers.org
Mon Sep 24 16:15:35 EDT 2007
#1011: Ordered markers layer
---------------------------+------------------------------------------------
Reporter: pdeffendol | Owner: euzuro
Type: feature | Status: new
Priority: minor | Milestone:
Component: Layer.Markers | Version: SVN
Keywords: |
---------------------------+------------------------------------------------
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.
--
Ticket URL: <http://trac.openlayers.org/ticket/1011>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list