Events
viewer2d.markerdrag
invoked when the user moves the marker example usage const onmarkerdrag = function (event) { const { marker } = event; console log("viewer2d markerdrag", "marker ", marker); }; viewer2d addeventlistener("viewer2d markerdrag", onmarkerdrag); jquery const onmarkerdrag = function (event, marker) { console log("viewer2d markerdrag", "marker ", marker); }; $("#viewer 2d") on("viewer2d markerdrag", onmarkerdrag); parameters onmarkerdrag function called when the user moves the marker type (event object) => void event name type description marker object the dragged marker srcevent object original dom event marker the marker the user dragged name type description color string color of the marker data object data included with the marker when added id string id of the marker text string optional text label displayed alongside the marker x number x coordinate of the marker in pixels y number y coordinate of the marker in pixels function called when the user moves the marker type (event object, marker object) => void event jquery event https //api jquery com/category/events/event object/ marker the marker the user dragged name type description color string color of the marker data object data included with the marker when added id string id of the marker text string optional text label displayed alongside the marker x number x coordinate of the marker in pixels y number y coordinate of the marker in pixels