ALKMaps.Strategy.Fixed

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

Inherits from

Summary
ALKMaps.Strategy.FixedA simple strategy that requests features once and never requests new data.
Properties
preload{Boolean} Load data before layer made visible.
Constructor
ALKMaps.Strategy.FixedCreate a new Fixed strategy.
Functions
activateActivate the strategy: load data or add listener to load when visible
deactivateDeactivate the strategy.
loadTells protocol to load data and unhooks the visibilitychanged event
mergeAdd all features to the layer.

Properties

preload

{Boolean} Load data before layer made visible.  Enabling this may result in considerable overhead if your application loads many data layers that are not visible by default.  Default is false.

Constructor

ALKMaps.Strategy.Fixed

Create a new Fixed strategy.

Parameters

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

Functions

activate

activate: function()

Activate the strategy: load data or add listener to load when visible

Returns

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

deactivate

deactivate: function()

Deactivate the strategy.  Undo what is done in activate.

Returns

{Boolean} The strategy was successfully deactivated.

load

load: function(options)

Tells protocol to load data and unhooks the visibilitychanged event

Parameters

options{Object} options to pass to protocol read.

merge

merge: function(mapProjection,
resp)

Add all features to the layer.

Parameters

mapProjection{ALKMaps.Projection} the map projection
resp{Object} options to pass to protocol read.
activate: function()
Activate the strategy: load data or add listener to load when visible
deactivate: function()
Deactivate the strategy.
load: function(options)
Tells protocol to load data and unhooks the visibilitychanged event
merge: function(mapProjection,
resp)
Add all features to the layer.
Abstract vector layer strategy class.
Methods for coordinate transforms between coordinate systems.
Close