Home > @magiclane/maps-sdk > MarkerCollection > add
MarkerCollection.add() method
Add a new marker to collection.
Signature:
add(marker: Marker, index?: number): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
marker |
The marker added to the collection | |
|
index |
number |
(Optional) The new marker position in collection. -1 means at the collection end (topmost) |
Returns:
void