A simple strategy that requests features once and never requests new data.
ALKMaps. | A simple strategy that requests features once and never requests new data. |
Properties | |
preload | {Boolean} Load data before layer made visible. |
Constructor | |
ALKMaps. | 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( mapProjection, resp )
Add all features to the layer.
mapProjection | {ALKMaps.Projection} the map projection |
resp | {Object} options to pass to protocol read. |
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( mapProjection, resp )