Constructor
new MobileDraw(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
ngeox.interaction.MobileDrawOptions | Options |
Fires:
- ol.interaction.Draw.event:Event
Extends
- ol.interaction.Interaction
Methods
addToDrawing()
Add current sketch point to sketch feature if the latter exists, else create it.
clearDrawing()
Clear the drawing
finishDrawing()
Finish drawing. If there's a sketch point, it's added first.
getDirty()
Return whether the interaction is currently dirty. It is if the sketch
feature has its geometry last coordinate set to the center without the
use of the addToDrawing
method.
Returns:
true
if the interaction is dirty, false
otherwise.
getDrawing()
Return whether the interaction is currently drawing.
Returns:
true
if the interaction is drawing, false
otherwise.
getFeature()
Returns the current sketch feature.
Returns:
The sketch feature, or null if none.
getValid()
Return whether the interaction as a valid sketch feature, i.e. its geometry is valid.
Returns:
true
if the interaction has a valid sketch feature,
false
otherwise.