2021.2

Table Of Contents
Event Description
update.cotg Sets the element to the current geolocation.
Image & Annotation
cotgNoteOnImage()
Initializing a new Image & Annotation element prepares it for user interaction.
Example: $('#myNoteOnImage').cotgNoteOnImage();
Note
To use this element with a Camera widget instead of a static image, you only have to
initialize the Camera widget with the allowannotations option set to true. The
Camera widget will automatically initialize the Image & Annotation widget.
The Image & Annotation element listens for the following events.
Event Description
bind-to-
image.cotg
Bind an annotation to the picture.
clear.cotg Removes any annotations.
clear-
note.cotg
Removes any annotations. When using this element with a Camera
element, trigger this event to remove annotations without removing the
picture.
restore-
state.cotg
Restores the annotations when the form is reopened in the COTG app,
after the app has restored previously entered values of static input fields.
save-
state.cotg
Saves the annotations.
The Image & Annotation element broadcasts the following events.
Page 629