[OpenLayers-Users] center crosshairs?

geoman csabbey at gmail.com
Thu Sep 11 09:06:35 EDT 2008


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.




More information about the Users mailing list