• JMap.Application.Annotation.deleteByType

    Deletes the annotations for the given type.

    Does nothing if no annotation exist for the type.

    Parameters

    • annotationType: JAPP_DRAW_TYPES

      the annotation type : "point", "polygon", "line_string", "rectangle", "circle", or "text"

    Returns void

    Throws

    if the annotation type is not correct

    Example

    // Delete all text annotations if exist
    JMap.Application.Annotation.deleteByType("text")