Methods
Marker
addMarker
adds a marker to the specified location example usage const marker = { x 0, y 0, }; const markerid = viewer2d addmarker(marker); parameters marker marker to add type required object yes properties name type required description clickable boolean no marker is clickable color string no color of the marker, defaults to red data object no optional data to associate with the marker draggable boolean no marker position will change when dragged icon icon docid\ ersdq9zoshf8pcpflvjph no replace the default marker icon id string no id of the marker text string no optional text label displayed alongside the marker x number yes x coordinate of the marker in pixels y number yes y coordinate of the marker in pixels return value id of the marker type string