//Handler called after a measurement was created ImajnetPlugin.onMeasurementCreated = function(customData) { //Here you can use the measurement data console.log(customData); } //Handler called after a pinpoint was created ImajnetPlugin.onPinPointCreated = function(customData) { //Here you can use the pinpoint data console.log(customData); } //Handler called after a polyligne or polygon was created ImajnetPlugin.onPolyligneCreated = function(coordinates, type) { //type will be a polygon or a linestring console.log(coordinates, type); }