OpenLayers.Control.FeaturePopups

Functions

showSingleFeatureById

showSingleFeatureById: function(layer,
featureId)

Parameters

layer{<OpenLayers.Layer.Vector>} The layer of selected feature.
featureId{String} id of the feature, see featureContext at addLayer.

addSelectionByIds

addSelectionByIds: function(layer,
featureIds,
silent)

Parameters

layer{<OpenLayers.Layer.Vector>} The layer of features to select.
featureIdsArray({String}) List of feature ids to be added to selection.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

setSelectionByIds

setSelectionByIds: function(layer,
featureIds,
silent)

Parameters

layer{<OpenLayers.Layer.Vector>} The layer of features to select.
featureIdsArray({String}) List of feature ids to set as select.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

removeSelectionByIds

removeSelectionByIds: function(layer,
featureIds,
silent)

Parameters

layer{<OpenLayers.Layer.Vector>} The layer of selected features.
featureIdsArray({String}) List of feature ids to be removed to selection.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

getSelectionIds

getSelectionIds: function(layer)

Parameters

layer{<OpenLayers.Layer.Vector>} The layer of selected features.
showSingleFeatureById: function(layer,
featureId)
addSelectionByIds: function(layer,
featureIds,
silent)
setSelectionByIds: function(layer,
featureIds,
silent)
removeSelectionByIds: function(layer,
featureIds,
silent)
getSelectionIds: function(layer)
addLayer: function(layer,
options)
Add the layer to control and assigns it the templates, see options.
Close