Events
viewer2d.markerdragend
invoked when the user stops moving the marker example usage const onmarkerdragcomplete = function (event) { const { marker } = event; console log("viewer2d markerdragend", "marker ", marker); }; viewer2d addeventlistener("viewer2d markerdragend", onmarkerdragcomplete); jquery const onmarkerdragcomplete = function (event, marker) { console log("viewer2d markerdragend", "marker ", marker); }; $("#viewer 2d") on("viewer2d markerdragend", onmarkerdragcomplete); parameters onmarkerdragcomplete function called when the user stops moving 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 stops moving 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