I ended up with a separate marker layer for the crosshairs icon that I put
below my other marker layer (by adding it to the map before the other
layer). 

My code for creating the marker is:
    new
OpenLayers.Marker(map.getLonLatFromPixel(centerPixel),crosshairsIcon);

When the map moves (the map move event), I call:
    crosshairsMarker.moveTo(map.getLayerPxFromViewPortPx(centerPixel));

-Craig
-- 
View this message in context: 
http://www.nabble.com/center-crosshairs--tp19398206p19434393.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to