Classes
Members
Type Definitions
-
Properties:
Name Type Argument Default Description conditionmodule:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEventand returns a boolean to indicate whether that event will be considered to add or move a vertex to the sketch. Default ismodule:ol/events/condition~primaryAction.deleteConditionmodule:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEventand returns a boolean to indicate whether that event should be handled. By default,module:ol/events/condition~singleClickwithmodule:ol/events/condition~altKeyOnlyresults in a vertex deletion.insertVertexConditionmodule:ol/events/condition~Condition <optional>
A function that takes an
module:ol/MapBrowserEvent~MapBrowserEventand returns a boolean to indicate whether a new vertex can be added to the sketch features. Default ismodule:ol/events/condition~always.pixelTolerancenumber <optional>
10 Pixel tolerance for considering the pointer close enough to a segment or vertex for editing.
stylemodule:ol/style/Style~StyleLike <optional>
Style used for the features being modified. By default the default edit style is used (see
module:ol/style).sourcemodule:ol/source/Vector~VectorSource <optional>
The vector source with features to modify. If a vector source is not provided, a feature collection must be provided with the features option.
featuresmodule:ol/Collection~Collection.<module:ol/Feature~Feature> <optional>
The features the interaction works on. If a feature collection is not provided, a vector source must be provided with the source option.
wrapXboolean <optional>
false Wrap the world horizontally on the sketch overlay.
-
Properties:
Name Type Argument Description depthArray.<number> <optional>
featuremodule:ol/Feature~Feature geometrymodule:ol/geom/SimpleGeometry~SimpleGeometry indexnumber <optional>
segmentArray.<module:ol/extent~Extent> featureSegmentsArray.<module:ol/interaction/Modify~SegmentData> <optional>