OpenSpace.Strategy.Fixed

A simple strategy that requests features once and never requests new data.

Inherits from

  • <OpenLayers.Strategy>
Summary
OpenSpace.Strategy.FixedA simple strategy that requests features once and never requests new data.
Constructor
OpenSpace.Strategy.FixedCreate a new Fixed strategy.
Functions
destroyClean up the strategy.
activateActivate the strategy: reads all features from the protocol and add them to the layer.
createFilterReturns {<OpenLayers.Filter>} The filter object.
mergeAdd all features to the layer.

Constructor

OpenSpace.Strategy.Fixed

Create a new Fixed strategy.

Parameters

options{Object} Optional object whose properties will be set on the instance.

Functions

destroy

destroy: function()

Clean up the strategy.

activate

activate: function()

Activate the strategy: reads all features from the protocol and add them to the layer.

Returns

{Boolean} True if the strategy was successfully activated or false if the strategy was already active.

createFilter

createFilter: function()

Returns {<OpenLayers.Filter>} The filter object.

merge

merge: function(resp)

Add all features to the layer.

destroy: function()
Clean up the strategy.
activate: function()
Activate the strategy: reads all features from the protocol and add them to the layer.
createFilter: function()
Returns {OpenLayers.Filter} The filter object.
merge: function(resp)
Add all features to the layer.
Close