[OpenLayers-Users] Mouse cursor offset when drawing..

BrainDrain paulborodaev at gmail.com
Fri Sep 12 08:12:01 EDT 2008


use:
map.events.element.offsets = null;
or map.events.clearMouseCache(); //for 2.7
after position of your map container div changed


Swärd Mårten wrote:
> 
> Hello folks!
> I'm having problems when drawing a feature in OL. 
> If I click on the map the point will be drawn beside the cursor with the
> same offset to the point that the map-div has to the screens left side..
> 
> See the screendump here:
> http://img98.imageshack.us/my.php?image=offseterrorvz4.png 
> 
> Does anyone know why this happens?
> 
> Best regards: Mårten
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://www.nabble.com/Mouse-cursor-offset-when-drawing..-tp19451643p19454562.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list