Ok, I have managed to get it working correctly by moving the code to a
callback for the map moveend event.

Here is my code: http://jsfiddle.net/G5UDF/9/

It feels like a bit of a hack though.  I don't like the idea of altering the
geometry just for visualization purposes.  Also, it's probably not very
efficient since I need to store the original positions and then recalculate
and redraw each feature on every map zoom and pan.

Is it possible to define something like graphicXOffset, graphicYOffset for
the features themselves?



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Lines-offset-by-x-pixels-disappearing-at-higher-zoom-levels-tp5005365p5005397.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to