API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class DrawMultiHandler

Package | org.openscales.core.handler.feature.draw
Class | public class DrawMultiHandler
Inheritance | DrawMultiHandler AbstractDrawHandler Handler

DrawMultiHandler allow you to merge several features (withe the same geometry) in one. It works ONLY with same geometries. It doesn't work with MultiGeometry. You can merge point in MultiPoint, MultiLineString in MultiLineString and MultiPolygon in Multipolygon

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean Getter and setter of the boolean defining the activity of the handler | Handler
|  | drawLayer : FeatureLayer The layer concerned by the drawing Operation | AbstractDrawHandler
|  | map : Map | AbstractDrawHandler
|  | multiPolygonForbidden : Boolean | DrawMultiHandler
|  | toggleHandlerActivity : Function Getter and setter of the callback function used when the handler's activity changes | Handler

Public Methods

| Method | Defined by
--- | --- | ---
|  | DrawMultiHandler(map:Map = null, active:Boolean = false, drawLayer:FeatureLayer = null) | DrawMultiHandler
|  | buttonClicked(selectedFeatures:Array):Feature | DrawMultiHandler

Protected Methods
Hide Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined by
--- | --- | ---
|  | registerListeners():void Add the listeners to the associated map | Handler
|  | unregisterListeners():void Remove the listeners to the associated map | Handler

Property detail

multiPolygonForbidden | property

`multiPolygonForbidden:Boolean` [read-write]Implementation
`public function get multiPolygonForbidden():Boolean`
`public function set multiPolygonForbidden(value:Boolean):void`
Constructor detail

DrawMultiHandler | () | constructor

`public function DrawMultiHandler(map:Map = null, active:Boolean = false, drawLayer:FeatureLayer = null)`Parameters

| `map:Map` (default = `null`)``
| `active:Boolean` (default = `false`)``
| `drawLayer:FeatureLayer` (default = `null`)``

Method detail

buttonClicked | () | method

`public function buttonClicked(selectedFeatures:Array):Feature` Parameters

| `selectedFeatures:Array`

Returns

| `Feature`