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