[Mapstraction] OpenLayers - keep markers layer on top?

Dylan Kuhn
Thu, 20 Jan 2011 16:48:16 -0000

Hi all,

You may be aware that openlayers keeps each kind of feature - markers,
polylines, KML, etc in a separate layer. The last layer to be added goes on
top, and only the top layer can receive click events.

Right now only markers are set up to handle click events, and it can be
frustrating when marker click events stop working because a layer has been
added after the markers layer.

My question is, would it be too meddlesome if mapstraction kept the markers
layer on top? If so, can you think of a different way that client code could
add layers after markers, but still receive marker click events?

thanks,
-dylan-
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20110120/78b7df08/attachment.htm>