Class: Difference

Difference(optionsopt)

Control for creating a difference of geometries.

Constructor

new Difference(optionsopt)

Parameters:
Name Type Attributes Description
options Object <optional>
Control options.
Properties
Name Type Attributes Description
hitTolerance number <optional>
Select tolerance in pixels (default is 10)
Source:

Extends

Members

(private) className :string

Html class name of the control button.
Type:
  • string
Inherited From:
Source:

(private) editor :ole.Editor

ole.Editor instance.
Type:
  • ole.Editor
Inherited From:
Source:

(private) properties :object

Control properties.
Type:
  • object
Inherited From:
Source:

(private) source :ol.source.Vector

Source with edit features.
Type:
  • ol.source.Vector
Inherited From:
Source:

(private) standalone :Boolean

Type:
  • Boolean
Inherited From:
Source:

(private) title :string

Control title.
Type:
  • string
Inherited From:
Source:

Methods

activate()

Activate the control
Inherited From:
Source:

applyTopologyOperation(features)

Apply a difference operation for given features.
Parameters:
Name Type Description
features Array.<ol.Feature> Features.
Source:

(private) closeDialog()

Closes the control dialog.
Inherited From:
Source:

deactivate(silentopt)

Dectivate the control
Parameters:
Name Type Attributes Description
silent boolean <optional>
Do not trigger an event.
Inherited From:
Source:

getActive() → {Boolean}

Returns the active state of the control.
Inherited From:
Source:
Returns:
Active state.
Type
Boolean

getElement() → {Element}

Returns the control's element.
Inherited From:
Source:
Returns:
the control element.
Type
Element

getProperties() → {object}

Return properties.
Inherited From:
Source:
Returns:
Copy of control properties.
Type
object

(private) onClick()

Click handler for the control element.
Inherited From:
Source:

openDialog()

Open the control's dialog (if defined).
Inherited From:
Source:

(protected) setEditor(editor)

Introduce the control to it's editor.
Parameters:
Name Type Description
editor ole.Editor OLE Editor.
Inherited From:
Source:

(protected) setMap(map)

Sets the map of the control.
Parameters:
Name Type Description
map ol.Map The map object.
Inherited From:
Source:

setProperties(properties, silentopt)

Set properties.
Parameters:
Name Type Attributes Description
properties object New control properties.
silent boolean <optional>
If true, no propertychange event is triggered.
Inherited From:
Source: