| OpenLayers. | |
| Properties | |
| events | {<OpenLayers.Events>} Events instance for listeners and triggering specific events. |
| 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>. |
| 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 constructor argument in the FeaturePopups.mode have set OpenLayers.Control.FeaturePopups.SAFE_SELECTION. |
| popupOptions | {Object} Options used to create a popup manager for selections only on this layer, set to {} to use default options, default is null. |
| active | {Boolean} The object is active (read-only) |
| Constructor | |
| OpenLayers. | |
| Functions and Properties | |
| getFeatureId | Returns the id of the feature used specifically for this layer. |
| applyTemplate | {Object} The object contains an applicator of the template for each template name. |
| destroy | |
| activate | |
| deactivate | |
| showSingleFeatureById | See featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features. |
{<OpenLayers.Events>} Events instance for listeners and triggering specific events.
Supported event types: see FeaturePopups.addLayer
Only required to use OpenLayers.Control.FeaturePopups with 2.11 or less
{Object} Set of templates, see FeaturePopups.addLayer
{Object} See FeaturePopups.addLayer
{Object} See FeaturePopups.addLayer
{Boolean} Read only, true if the control constructor argument in the FeaturePopups.mode have set OpenLayers.Control.FeaturePopups.SAFE_SELECTION.
{Object} Options used to create a popup manager for selections only on this layer, set to {} to use default options, default is null.
May contain two keys: “list” and “single”.
For more details of valid options for any key see FeaturePopups.Popup.Constructor.
| popupClass | <OpenLayers.Popup.FramedCloud> |
| panMapIfOutOfView | true |
| unselectFunction | Depends on the FeaturePopups.mode (internal use) |
| closeBox | Depends on the FeaturePopups.mode (internal use) |
| observeItems | true (internal use) |
| relatedToClear | [[“hover”, “hoverList”, “listItem”], [“single”]] (internal use) |
| popupClass | <OpenLayers.Popup.FramedCloud> |
| panMapIfOutOfView | true |
| unselectFunction | Depends on the mode (internal use) |
| closeBox | Depends on the mode (internal use) relatedToClear: [[“hover”, “hoverList”, “listItem”], [“list”]] (internal use) |
this.getFeatureId = function( feature )
Returns the id of the feature used specifically for this layer. Usually the id returned is the `fid` feature if it exists and otherwise is the `id`.
This function can not be overwritten, use featureContext to change this behavior.
| feature | {OpenLayers.Feature.Vector} |
{String} A unique identifier of the feature within the layer according featureContext.
showSingleFeatureById: function( featureId, origin )
See featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features.
| featureId | {String} id of the feature. |
| origin | {<OpenLayers.Control.FeaturePopups.Popup>|null} |
Add the layer to control and assigns it the templates, see options.
addLayer: function( layer, options )
Returns the id of the feature used specifically for this layer.
this.getFeatureId = function( feature )
destroy: function()
activate: function()
deactivate: function()
See featureContext at FeaturePopups.addLayer to know how to use “id” or “fid” of features.
showSingleFeatureById: function( featureId, origin )