A simple strategy that requests features once and never requests new data.
OpenLayers. | A simple strategy that requests features once and never requests new data. |
Properties | |
preload | {Boolean} Load data before layer made visible. |
Constructor | |
OpenLayers. | Create a new Fixed strategy. |
Functions | |
activate | Activate the strategy: load data or add listener to load when visible |
deactivate | Deactivate the strategy. |
load | Tells protocol to load data and unhooks the visibilitychanged event |
merge | Add all features to the layer. |
deactivate: function()
Deactivate the strategy. Undo what is done in activate.
{Boolean} The strategy was successfully deactivated.
merge: function( resp )
Add all features to the layer. If the layer projection differs from the map projection, features will be transformed from the layer projection to the map projection.
resp | {OpenLayers.Protocol.Response} The response object passed by the protocol. |
Activate the strategy: load data or add listener to load when visible
activate: function()
Deactivate the strategy.
deactivate: function()
Tells protocol to load data and unhooks the visibilitychanged event
load: function( options )
Add all features to the layer.
merge: function( resp )