[OpenLayers-Users] force update markers layer

Jan Hartmann j.l.h.hartmann at uva.nl
Thu Mar 8 10:43:56 EST 2012


Well, first removing and then adding all markers from the markers layer 
will force the update. Not elegant, but it works.

Jan

On 03/07/2012 04:27 PM, Jan Hartmann wrote:
> Hi,
>
> How do I force a redraw on a markers layer? I have a regular WMS map 
> with markers that have their lonlat-values updated from a database. I 
> can force a redraw of the WMS layer with mergenewparams(), but that is 
> not possible with the markers layer. That means that the when the 
> lonlat values are updated and I move the map, the markers remain in 
> their original positions. Only when I zoom in or out, the marker 
> positions are updated. Can I do something about that?
>
> Jan
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120308/40dce6c0/attachment.html


More information about the Users mailing list