[OpenLayers-Users] Mouse cursor offset when drawing..
Swärd Mårten
marten.sward at smhi.se
Tue Sep 16 02:40:30 EDT 2008
Hello!
Thanks for the answer!
But unfortunately it did not fix the problem..
I'have a div based layout, and to the left of the map div there is a div with a menu, is there anything about div:s and OpenLayers that could cause this problem?
************************************************************************
Mvh:
Mårten Swärd
Systemutvecklare/Webbutvecklare, ITs
SMHI, Sveriges Meteorologiska och Hydrologiska Institut
Tel: +46 11 495 8469
-----Ursprungligt meddelande-----
Från: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] För BrainDrain
Skickat: den 12 september 2008 14:12
Till: users at openlayers.org
Ämne: Re: [OpenLayers-Users] Mouse cursor offset when drawing..
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.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list