A strategy that refreshes the layer. By default the strategy waits for a call to refresh before refreshing. By configuring the strategy with the interval option, refreshing can take place automatically.
| OpenLayers. | A strategy that refreshes the layer. |
| Properties | |
| force | {Boolean} Force a refresh on the layer. |
| interval | {Number} Auto-refresh. |
| timer | {Number} The id of the timer. |
| Constructor | |
| OpenLayers. | Create a new Refresh strategy. |
| Functions | |
| activate | Activate the strategy. |
| deactivate | Deactivate the strategy. |
| reset | Start or cancel the refresh interval depending on the visibility of the layer. |
| start | Start the refresh interval. |
| refresh | Tell the strategy to refresh which will refresh the layer. |
| stop | Cancels the refresh interval. |
Activate the strategy.
activate: function()
Deactivate the strategy.
deactivate: function()
Start or cancel the refresh interval depending on the visibility of the layer.
reset: function()
Start the refresh interval.
start: function()
Tell the strategy to refresh which will refresh the layer.
refresh: function()
Cancels the refresh interval.
stop: function()