On Fri, Sep 12, 2008 at 05:12:01AM -0700, BrainDrain wrote:
> 
> use:
> map.events.element.offsets = null;
> or map.events.clearMouseCache(); //for 2.7
> after position of your map container div changed

Actually, you should use 'map.updateSize()' in either version.

> 
> 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
> > [email protected]
> > 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users

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

Reply via email to