[OpenLayers-Users] Updating Text Layer - flickering markers

Ran Manor ran.manor at gmail.com
Thu Oct 8 06:14:58 EDT 2009


This sounds great, I'll give it a try.

Thanks!

- Ran


Don't destroy the layer before creating a new one. Create a new layer,
> and destroy the old one when the new one is loaded (i.e. in a loadend
> event handler of the new layer).
>
> An even smarter way would be to not use a Markers layer, but a Vector
> layer with HTTP protocol, Text format and a Fixed strategy. Then you can
> just load the new text file, and there will be no flicker.
>
> Regards,
> Andreas.
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091008/e375d989/attachment.html


More information about the Users mailing list