[OpenLayers-Users] Reload Layer
Erik Uzureau
euzuro at gmail.com
Tue Mar 4 12:18:25 EST 2008
it may be worthy of mention that this forced redrawing is now
supported in trunk as:
layer.redraw(true);
see definition below:
/**
* APIMethod: redraw
* Redraws the layer. Returns true if the layer was redrawn, false if not.
*
* Parameters:
* force - {Boolean} Force redraw by adding random parameter.
*
* Returns:
* {Boolean} The layer was redrawn.
*/
redraw: function(force) {
if (force) {
return this.mergeNewParams({"_olSalt": Math.random()});
} else {
return OpenLayers.Layer.prototype.redraw.apply(this, []);
}
},
On 3/4/08, Tim Schaub <tschaub at openplans.org> wrote:
> Hey-
>
> Gérald Quintana wrote:
> > Is there way to avoid image flickering when a layer is refreshing?
>
> Depends what type of layer you're talking about. If you really mean
> layers that use images, then this ticket addresses the issue:
>
> http://trac.openlayers.org/ticket/933
>
> Tim
>
> >
> > Gérald
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> > !DSPAM:4033,47cbc70716951804284693!
> >
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list