Selector.js

Summary
Selector.js
Constants
i18n_button_delegate{String} Delegate Context button
i18n_featurepanel_selector_grid_title{String} GridPanel title
i18n_featurepanel_selector_no_context_title{String} No context error title
i18n_featurepanel_selector_no_context_message{String} No context error message
Functions
addOwnerCalled right after this FeaturePanel has been added to an owner.
formCallBackCalled by the delegatecontext button.
getActiveOwnerReturn the current activated owner (OpenLayers.Control).
showFeaturePanelCalled by an owner.
setWindowPositionSets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them.

Constants

i18n_button_delegate

{String} Delegate Context button

i18n_featurepanel_selector_grid_title

{String} GridPanel title

i18n_featurepanel_selector_no_context_title

{String} No context error title

i18n_featurepanel_selector_no_context_message

{String} No context error message

Functions

addOwner

addOwner: function(owner)

Called right after this FeaturePanel has been added to an owner.  The owner is added to this.owners.

Parameters

Owner{<OpenLayers.Control.*>} Can be :
  • QueryOnClick

formCallBack

formCallBack: function(object)

Called by the delegatecontext button.

Parameters

object{<OpenLayers.Record>} : data from selected feature

getActiveOwner

getActiveOwner: function()

Return the current activated owner (OpenLayers.Control).

Returns activeOwner - {<OpenLayers.Control.*>} Can be :

  • QueryOnClick

showFeaturePanel

showFeaturePanel: function(features)

Called by an owner.  Displays this panel.

Parameters

features{Array(<OpenLayers.Vector.Feature>)}

setWindowPosition

setWindowPosition: function(features)

Sets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them.  Called just before showing window.

The position is relative to the GeoExt.MapPanel.  Its id must be set to ‘gp’+MapName, like : ‘gpDefaultMap’.

N.B. currently supports only ONE feature

Parameters

features{Array(<OpenLayers.Vector.Feature>)}
addOwner: function(owner)
Called right after this FeaturePanel has been added to an owner.
formCallBack: function(object)
Called by the delegatecontext button.
getActiveOwner: function()
Return the current activated owner (OpenLayers.Control).
showFeaturePanel: function(features)
Called by an owner.
setWindowPosition: function(features)
Sets the position of the window so that it’s the farest away form the selected feature(s) to be able to see them.
Close