Home > @magiclane/maps-sdk > LandmarkStoreService
LandmarkStoreService class
Landmark store service
A static service providing high-level management for landmark store lifecycle and discovery. It is the central entry point for creating or registering stores, looking up existing stores, removing stores, enumerating all available stores and obtaining built-in store identifiers used by the map.
Main capabilities include store creation/registration and lookup, retrieval of special-purpose store identifiers used by the SDK, enumeration of available stores. Common tasks are creating or importing a store, resolving a store to use for imports or queries, removing an unused store, listing store and adding/removing event listeners to react to store lifecycle changes.
Places
Signature:
export declare abstract class LandmarkStoreService Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
number |
Get LandmarkStore id attached to geofence database. The result Id cannot be used with getLandmarkStoreById | |
|
|
Get all landmark stores. | ||
|
|
number |
Get Map Address landmarkstore id attached to map address database information. The result Id cannot be used with getLandmarkStoreById | |
|
|
number |
Get Map Cities landmarkstore id attached to map address database information. The result Id cannot be used with getLandmarkStoreById | |
|
|
number |
Get Map POIs landmarkstore id. | |
|
|
number |
Get LandmarkStore id attached to map roads database information. The result Id cannot be used with getLandmarkStoreById | |
|
|
number |
Get LandmarkStore id attached to overlays database. The result Id cannot be used with getLandmarkStoreById |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Add new listener for landmark store events. | |
|
|
Create a new landmark store. The landmark store type for all stores created with this function is LandmarkStoreType.defaultType | |
|
|
Get landmark store by ID. | |
|
|
Get landmark store by name. | |
|
|
Get the type of the landmark store | |
|
|
Register an already existing landmark store. The name parameter will override the landmark store internal creation name. This allows registering landmark stores in order to import data from them | |
|
|
Remove the landmark store specified by ID. The landmark store should be disposed before calling this method. Dispose the landmark store using LandmarkStore.dispose. The landmarks store will not be removed unless the object is disposed. The method does not work if the landmark store is in use. | |
|
|
Remove listener for landmark store events. |