JMap.Application.Annotation.addPresetColor
Add the given color to the preset colors of color pickers if not already present.
A hex color
JMap.Application.Annotation.deleteAll
Deletes all annotations.
Does nothing if no annotation exists.
JMap.Application.Annotation.deleteByIds
Deletes the annotations for the given ids.
an array of annotation id
JMap.Application.Annotation.deleteByType
Deletes the annotations for the given type.
Does nothing if no annotation exist for the type.
the annotation type : "point", "polygon", "line_string", "rectangle", "circle", or "text"
JMap.Application.Annotation.deletePresetColor
Delete the given color to the preset colors of color pickers if present.
A hex color
JMap.Application.Annotation.deleteSelected
Deletes the selected annotations.
Does nothing if no selection.
JMap.Application.Annotation.existsById
Returns true if annotation exists for the given id, else false
the given annotation id
JMap.Application.Annotation.getAll
Returns all annotations.
JMap.Application.Annotation.getById
Returns the annotation for the given id.
the given annotation id
JMap.Application.Annotation.getDrawMode
Returns the current draw mode.
JMap.Application.Annotation.getDrawType
Returns the current draw type.
JMap.Application.Annotation.getPresetColors
Return the preset colors used by the application's color pickers.
JMap.Application.Annotation.getSelectedIds
Returns the ids of the selected annotations.
Empty array if no annotation is selected
JMap.Application.Annotation.getStyle
Returns the current style in use for annotation drawing.
JMap.Application.Annotation.setDrawMode
Sets the annotation draw mode.
the new draw mode
JMap.Application.Annotation.setDrawMode
Sets the annotation draw mode.
the new draw type
JMap.Application.Annotation.setPresetColors
Set the preset colors of color pickers using the given colors.
A array of preset hex colors
JMap.Application.Annotation.setStyleByAnnotationIds
For given ids, updates annotation style.
JMap.Application.Annotation.updateStyle
Updates annotation style, for the next annotations that will be drawn.
Merges the new options with current one.
JMap.Application.Annotation
You can manage everything related to annotations here.