2022.2

Table Of Contents
Option Description Type Default
enableHighAccuracy By default, the device attempts to retrieve a position using
network-based methods. Setting this property to true tells
the framework to use more accurate methods, such as satel-
lite positioning.
Boolean false
maximumAge
Acceptacachedpositionifitisn'tolderthanthespecifiedtimeinmil-
liseconds.
Number 3000
timeout
Themaximumlengthoftime(milliseconds)thatisallowedtopassbeforethe
positionisretrieved.
Number 2700
Events
TheGeolocationelementlistens forthefollowingevents.
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()
InitializinganewImage&Annotationelementpreparesitforuserinteraction.
Example: $('#myNoteOnImage').cotgNoteOnImage();
Note: TousethiselementwithaCamerawidgetinsteadofastaticimage,youonlyhavetoini-
tializetheCamerawidgetwiththeallowannotationsoptionsettotrue.TheCamerawidget
willautomaticallyinitializetheImage&Annotationwidget.
TheImage&Annotationelementlistens forthefollowingevents.
Event Description
bind-to-image.-
cotg
Bindanannotationtothepicture.
Page 562