A menu button which integrates the <OpenLayers.Control.Panel>. If triggered an vector will been painted by moving the mouse. If selection is done and the getValue callback function is implemented, you’ll reveive the currently painted bbox. On the oposite you have the possibility to initialize this control by implementing the setValue function.
| Legato. | A menu button which integrates the <OpenLayers.Control.Panel>. |
| Properties | |
| type | {String} OpenLayers.Control.TYPE_TOOL |
| selectionLayer | {OpenLayers.Feature.Vector} The vector layer which will be created and managed by this control |
| styleMap | {<OpenLayers.StyleMap>} |
| Selection | {String} The default name of the selection box layer. |
| defaultOpacity | {Number} The default opacity value of the selectionbox layer. |
| Functions | |
| initialize | Basic ctor |
| destroy | <OpenLayer.Control> |
| draw | <OpenLayer.Control> |
| lc: | XML based config for a <Legato.Control.lc:SelectionBoxValueProvider>. |
| Properties | |
| QName | The qualified name for this control. |
| opacity | |
| layerName | |
| left | Defines the {DOMElement} id where the left <OpenLayers.Bounds> value should be written into. |
| right | Defines the {DOMElement} id where the right <OpenLayers.Bounds> value should be written into. |
| top | Defines the {DOMElement} id where the top <OpenLayers.Bounds> value should be written into. |
| bottom | Defines the {DOMElement} id where the bottom <OpenLayers.Bounds> value should be written into. |
initialize : function( options )
Basic ctor
| options | {Object} A Hashmap containing option parameters for this control The following keys are supported |
XML based config for a <Legato.Control.lc:SelectionBoxValueProvider>.
<lc:SelectionBoxValueProvider opacity="0.5" layerName="Foo" left="selectionLeft" right="selectionRight" top="selectionTop" bottom="selectionBottom"/>
| Properties | |
| QName | The qualified name for this control. |
| opacity | |
| layerName | |
| left | Defines the {DOMElement} id where the left <OpenLayers.Bounds> value should be written into. |
| right | Defines the {DOMElement} id where the right <OpenLayers.Bounds> value should be written into. |
| top | Defines the {DOMElement} id where the top <OpenLayers.Bounds> value should be written into. |
| bottom | Defines the {DOMElement} id where the bottom <OpenLayers.Bounds> value should be written into. |
Basic ctor
initialize : function( options )
OpenLayer.Control
destroy : function()
OpenLayer.Control
draw: function()