Events
viewer2d.markerhover
invoked when the user hovers over a marker example usage const onmarkerhover = function (event) { const { marker } = event; console log("viewer2d markerhover", "marker ", marker); }; viewer2d addeventlistener("viewer2d markerhover", onmarkerhover); jquery const onmarkerhover = function (event, marker) { console log("viewer2d markerhover", "marker ", marker); }; $("#viewer 2d") on("viewer2d markerhover", onmarkerhover); parameters onmarkerhover function called when the user hovers over a marker type (event object) => void event name type description marker object marker below the cursor, undefined if none srcevent object original dom event marker the marker below the cursor name type description clickable boolean whether marker is clickable data object data included with the marker when added draggable boolean whether marker moves when dragged element svgelement svg element of the marker fillcolor string color of the marker icon icon docid\ ersdq9zoshf8pcpflvjph icon of the marker id string id of the marker position vector2 docid\ hfhnmbfsrrrisube9wggy location of the marker text string optional text label displayed alongside the marker function called when the user hovers over a marker type (event object, marker object) => void event jquery event https //api jquery com/category/events/event object/ marker the marker below the cursor name type description clickable boolean whether marker is clickable data object data included with the marker when added draggable boolean whether marker moves when dragged element svgelement svg element of the marker fillcolor string color of the marker icon icon docid\ ersdq9zoshf8pcpflvjph icon of the marker id string id of the marker position vector2 docid\ hfhnmbfsrrrisube9wggy location of the marker text string optional text label displayed alongside the marker