Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.editing$.subscribe((editUpdate: PolylineEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT_FINISH) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
}
this.editing$.subscribe((editUpdate: PolygonEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT_FINISH) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
}
this.editing$.subscribe((editUpdate: HippodromeEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT_FINISH) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
}
this.editing$.subscribe((editUpdate: PolygonEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT_FINISH) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
}
this.editing$.subscribe((editUpdate: PolylineEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT_FINISH) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
this.editing$.subscribe((editUpdate: PolylineEditUpdate) => {