The Marker JavaScript Object

JavaScript sees a marker as an object with the following interesting properties:

Table 7-2. Marker Object Fields

fielddescriptionnotes
mk.cx, mk.cyThe position of the marker in real-world coordinates.If the marker could have been moved by the user you should call markers_position_update before using the position since, for efficiency reasons, the position seen by JavaScript is not updated for ever move of the marker on the screen.
mk.name, mk.klassMarker name.Read only.
mk.labelThe label displayed with the markerRead only. Set with markers_set_label.
mk.priorityThe priority of the markerRead only. Set with markers_set_priority.