Constructor
new Editor(map, optionsopt)
    Initialization of the editor.
    Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| map | ol.Map | The map object. | |||||||||||||
| options | Object | <optional> | Editor options. Properties
 | 
Members
(private) activeControls :ol.Collection.<ole.Control>
Type:
- ol.Collection.<ole.Control>
(private) controls :ol.Collection.<ole.Control>
Type:
- ol.Collection.<ole.Control>
(private) editFeature :ol.Feature
    Feature that is currently edited.
    Type:
- ol.Feature
(private) map :ol.Map
Type:
- ol.Map
(private) options :Object
Type:
- Object
(private) services :ol.Collection.<ole.Service>
Type:
- ol.Collection.<ole.Service>
Methods
(private) activeStateChange(control)
    Controls use this function for triggering activity state changes.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| control | ol.control.Control | Control. | 
addControl(control)
    Adds a new control to the editor.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| control | ole.Control | The control. | 
addControls(controls)
    Adds a collection of controls to the editor.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| controls | ol.Collection.<ole.Control> | Collection of controls. | 
addService()
    Adds a service to the editor.
        
            
    
    
    getActiveControls() → {ol.Collection.<ole.Control>}
    Returns a list of active controls.
Returns:
    Active controls.
- Type
- ol.Collection.<ole.Control>
getControls() → {ol.Collection.<ole.Control>}
    Returns a list of ctive controls.
Returns:
    Active controls.
- Type
- ol.Collection.<ole.Control>
getDrawFeature() → {ol.Feature|null}
    Returns the feature that is currently being drawn.
Returns:
    The drawFeature.
- Type
- ol.Feature | null
getEditFeature() → {ol.Feature|null}
    Returns the feature that is currently edited.
Returns:
    The edit feature.
- Type
- ol.Feature | null
remove()
    Removes the editor from the map.
        
            
    
    
    removeControl(control)
    Remove a control from the editor
    Parameters:
| Name | Type | Description | 
|---|---|---|
| control | ole.Control | The control. | 
(protected) setDrawFeature(feature)
    Sets an instance of the feature that is being drawn.
Some controls need information about the feature
that is currently being drawn (e.g. for not snapping on them).
    Parameters:
| Name | Type | Description | 
|---|---|---|
| feature | ol.Feature | null | The drawFeature (or null if none). | 
(protected) setEditFeature(feature)
    Sets an instance of the feature that is edited.
Some controls need information about the feature
that is currently edited (e.g. for not snapping on them).
    Parameters:
| Name | Type | Description | 
|---|---|---|
| feature | ol.Feature | null | The editfeature (or null if none) |