2020.2

Table Of Contents
Event Description
clear.cotg
Removes the Geolocation data.
restore-
state.cotg
Restores the state of the widget when the form is reopened in the COTG
app, after the app has restored previously entered values of static input
fields.
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- Restores the annotations when the form is reopened in the COTG app, after
Page 607