Home > @magiclane/maps-sdk > Marker > deleteRange
Marker.deleteRange() method
Delete a range of coordinates from a specific part of the marker between given indexes.
Signature:
deleteRange(partIndex: number, startIndex: number, endIndex: number): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
partIndex |
number |
The marker part index to which the function applies |
|
startIndex |
number |
The start index of the deleted coordinates list |
|
endIndex |
number |
The last index of the deleted coordinates list (excluding). If -1, the delete will perform until the end of the coordinates list |
Returns:
void