Home > Geopedia API > markerAdded

markerAdded

The user added a new marker by mouse click after the "execute" command with "addMarker" param.

Response JSON members:

  • command: "markerAdded",
  • marker: markerData where markerData consist of {x:<x>,y:<y>,index:<index>}, X and Y are in native display CRS of the widget, and the index is the marker's index. The first marker has index=0.

Example:


{"command":"markerAdded","marker":{"x":123,"y":456,"index":0}}