Home > @magiclane/maps-sdk > LandmarkStoreService > createLandmarkStore
LandmarkStoreService.createLandmarkStore() method
Create a new landmark store. The landmark store type for all stores created with this function is LandmarkStoreType.defaultType
Signature:
static createLandmarkStore(name: string, input?: {
zoom?: number;
folder?: string;
}): LandmarkStore;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
string |
The name of the landmark store. The name must be unique otherwise will return GemError.exist. |
|
{ zoom, folder } |
(not declared) |
(Optional) |
|
input |
{ zoom?: number; folder?: string; } |
(Optional) |
input properties:
- Optional zoom?: number
- Optional folder?: string
Returns:
LandmarkStore object. If a landmark store with the given name already exists, it is returned.
Exceptions
An exception if it fails.