OpenLayers.Control.FeaturePopups.Layer

Summary
OpenLayers.Control.FeaturePopups.Layer
Properties
events{<OpenLayers.Events>} Events instance for listeners and triggering specific events.
Constants
EVENT_TYPESOnly required to use OpenLayers.Control.FeaturePopups with 2.11 or less
Properties
eventListeners{Object} If set on options at construction, the eventListeners object will be registered with <OpenLayers.Events.on>.
templates{Object} Set of templates, see FeaturePopups.addLayer
featureContext{Object} See FeaturePopups.addLayer
listContext{Object} See FeaturePopups.addLayer
safeSelection{Boolean} Read only, true if the control costructor argument in the FeaturePopups.mode have set OpenLayers.Control.FeaturePopups.SAFE_SELECTION.
active{Boolean} The object is active (read-only)
Constructor
OpenLayers.Control.FeaturePopups.Layer
Properties
applyTemplate{Object} The object contains an applicator of the template for each template name.
Functions
destroy
activate
deactivate
clearClear selection stored if safeSelection is true.
addSelectionByIds
setSelectionByIds
removeSelectionByIds
showSingleFeatureByIdSee featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features.
getSelectionIds

Properties

events

{<OpenLayers.Events>} Events instance for listeners and triggering specific events.

Supported event types: see FeaturePopups.addLayer

Constants

EVENT_TYPES

Only required to use OpenLayers.Control.FeaturePopups with 2.11 or less

Properties

eventListeners

{Object} If set on options at construction, the eventListeners object will be registered with <OpenLayers.Events.on>.  Object structure must be a listeners object as shown in the example for the events.on method.

templates

{Object} Set of templates, see FeaturePopups.addLayer

featureContext

listContext

safeSelection

{Boolean} Read only, true if the control costructor argument in the FeaturePopups.mode have set OpenLayers.Control.FeaturePopups.SAFE_SELECTION.

active

{Boolean} The object is active (read-only)

Constructor

OpenLayers.Control.FeaturePopups.Layer

Properties

applyTemplate

{Object} The object contains an applicator of the template for each template name.  Each applicator returns a {String} with tokens replaced from the context of feature (for names single, item, hover, hoverItem) or context of list (for names list and hoverList)

Functions

destroy

destroy: function()

activate

activate: function()

deactivate

deactivate: function()

clear

clear: function()

Clear selection stored if safeSelection is true.

addSelectionByIds

addSelectionByIds: function(featureIds,
silent)

Parameters

featureIds{Array(String)} List of feature ids to be added to selection.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

setSelectionByIds

setSelectionByIds: function(featureIds,
silent)

Parameters

featureIds{Array(String)} List of feature ids to set as select.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

removeSelectionByIds

removeSelectionByIds: function(featureIds,
silent)

Parameters

featureIds{Array(String)} List of feature ids to be removed to selection.
silent{Boolean} Supress “selectionchanged” event triggering.  Default is false.

showSingleFeatureById

showSingleFeatureById: function(featureId)

See featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features.

Parameters

featureId{String} id of the feature.

getSelectionIds

getSelectionIds: function()
The FeaturePopups control selects vector features from a given layers on click and hover and can show the feature attributes in a popups.
addLayer: function(layer,
options)
Add the layer to control and assigns it the templates, see options.
To enable or disable the various behaviors of the control.
{Integer} Used in mode indicates that the features will remain selected even have been removed from the layer.
destroy: function()
activate: function()
deactivate: function()
clear: function()
Clear selection stored if safeSelection is true.
{Boolean} Read only, true if the control costructor argument in the FeaturePopups.mode have set OpenLayers.Control.FeaturePopups.SAFE_SELECTION.
addSelectionByIds: function(featureIds,
silent)
setSelectionByIds: function(featureIds,
silent)
removeSelectionByIds: function(featureIds,
silent)
showSingleFeatureById: function(featureId)
See featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features.
getSelectionIds: function()
Close