-
Name Type Description mapmodule:cercaliagl/Map~Map
Methods
-
Disable interaction.
-
Disables snap.
-
Enable interaction gived a geometry type. Geometry types available are:
point,line,polygon,rectangle.
You can access them via:- cercaliagl.interaction.Draw.Type.POINT
- cercaliagl.interaction.Draw.Type.LINE
- cercaliagl.interaction.Draw.Type.POLYGON
- cercaliagl.interaction.Draw.Type.RECTANGLE
Optionally you can specify a callback function. Callback function received feature as parameter.Name Type Description typestring Type
callbackFnfunction -
Enables snap.
-
Return
trueif interaction is active. Elsefalse.