[OpenLayers-Users] Shifting markers and vectors in IE6 after pan

Andreas Hocevar ahocevar at opengeo.org
Wed Jul 22 04:19:41 EDT 2009


Hi,

the current version of OpenLayers is 2.8. But you are saying that you
see the same behaviour on the OpenLayers examples site? I just tested
on IE6, and I do not see it (neither in the vector-features.html nof
in the markers.html example).

Can you provide an example where this happens?

Regards,
Andreas.

On Tue, Jul 21, 2009 at 10:04 PM, Craig
McIlwee<craig.mcilwee at openroadsconsulting.com> wrote:
> Hello,
>
>
>
> I’ve recently updated one of our applications to OpenLayers 2.7.  Previously
> we were using an OpenLayer.js file with revision 2106, which appears to have
> been somewhere between 2.3 rc2 and rc3.  Now when I plot vector features on
> a vector layer I am seeing strange behavior in IE6 that did not happen
> before.  When I pan the map the vectors follow, but as soon as I release the
> mouse they do a small jump in the direction that I panned.  So for example,
> I drag the map so that I can see further East and as soon as I release my
> mouse button the vector images jump a few pixels to the East instead of
> staying at the correct location.  This also happens when using the
> navigation arrows that are at the top left of the map.  I’ve tested this on
> the OpenLayers example site (www.openlayers.org/dev/examples) and I am
> seeing the same behavior with vectors and markers.  This only affects IE6
> though, FF2, FF3, and IE7 seem fine.
>
>
>
> So I’m curious if there is a workaround for this, other than removing all of
> the vectors and replotting them if I detect a drag event.  Is there some
> function that I can call that will fix vector positions?  I’ve tried
> attaching to the ‘moveend’ events on both map and layer to call
> layer.refresh() and layer.redraw() but this doesn’t seem to help, and I’m
> not sure but maybe these are already called on a move anyway.  Any other
> suggestions?
>
>
>
> Thanks,
>
> Craig McIlwee
>
> Open Roads Consulting, Inc.
>
> 757-546-3401
>
> http://www.openroadsconsulting.com
>
>
>
> This e-mail communication (including any attachments) may contain
> confidential and/or privileged material intended solely for the individual
> or entity to which it is addressed.  If you are not the intended recipient,
> you should immediately stop reading this message and delete it from all
> computers that it resides on. Any unauthorized reading, distribution,
> copying or other use of this communication (or its attachments) is strictly
> prohibited.  If you have received this communication in error, please notify
> us immediately.
>
>
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list