-
Name Type Description map
module: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 type
string Type
callbackFn
function -
Enables snap.
-
Return
true
if interaction is active. Elsefalse
.