[OpenLayers-Users] Real-time image in Openlayer
Diego Guidi
diegoguidi at gmail.com
Fri Sep 2 11:27:54 EDT 2011
> It's true, that WMS.redraw() doesn't seem to really force it. Try this trick:
>
> refresh_test.mergeNewParams({ blah:Math.random() });
> refresh_test.redraw(true);
>
HttpRequest.redraw method does the same thing, so the additional call
to mergeNewParams looks unnecessary
see: http://trac.osgeo.org/openlayers/browser/trunk/openlayers/lib/OpenLayers/Layer/HTTPRequest.js
redraw: function(force) {
if (force) {
return this.mergeNewParams({"_olSalt": Math.random()});
} else {
return OpenLayers.Layer.prototype.redraw.apply(this, []);
}
},
More information about the Users
mailing list