try
wmsLayer.redraw({force:true});
vectorLayer.refresh({force:true});
Arnd
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Samuel
Gilbert
Gesendet: Freitag, 17. Mai 2013 17:07
An: [email protected]
Betreff: [OpenLayers-Users] How to refresh a layer being displayed?
Hello,
I am displaying a few layers containing some data that change over time
(ie.
Weather Radar). Is there a way to ask OpenLayers to fetch the up-to-date
tiles from the server? The same GetMap request will respond different tiles
at different points in time.
So far, the only solution I found is to delete the layer and create a new
one with the exact same properties. This isn't very nice; is there a better
way to do this?
Samuel
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users