Ticket #1011 (closed feature: duplicate)

Opened 6 years ago

Last modified 5 years ago

Ordered markers layer

Reported by: pdeffendol Owned by: euzuro
Priority: minor Milestone: Future
Component: Layer.Markers Version: SVN
Keywords: Cc:
State:

Description

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.

Change History

Changed 6 years ago by euzuro

This sounds like it could be an interesting extension, though I can't conceive of an easy way to implement this.

Have you one in mind?

Patches or suggestions welcome.

Changed 6 years ago by crschmidt

  • milestone set to Future

Changed 5 years ago by euzuro

  • status changed from new to closed
  • resolution set to duplicate

See #1537

Note: See TracTickets for help on using tickets.