On Thu, Dec 9, 2010 at 12:26 PM, Wyo <[email protected]> wrote:
> Jørgen S. Nicolaysen wrote:
>>
>> You must set the parameter 'interval' for the refresh strategy to make it
>> work:
>> var refreshStrategy = new OpenLayers.Strategy.Refresh({interval: 1000});
>> Note that this is the time in milliseconds, if it is 0, it will not
>> trigger
>> refresh at all.
>>
> I've discovered it myself so I've switched to Strategy.Fixed(). I'd like to
> refresh not with an interval but by a user action. I'll see if I can destroy
> and recreate the layer to achieve the wished behaviour.
>

Why can't you just call
   layer.redraw(true);
?

Ian

-- 
Ian Turton
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to