Home > @magiclane/maps-sdk > LandmarkStore > addLandmark
LandmarkStore.addLandmark() method
Add a landmark to the specified category in the landmark store.
If the landmark already exists in the landmark store, only the category info is updated.
Signature:
addLandmark(landmark: Landmark, categoryId?: number): void;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
landmark |
The landmark to be added to the landmark store in the specified category. | |
|
categoryId |
number |
(Optional) The ID of the category where the landmark will be added. |
Returns:
void
Exceptions
An exception if it fails.