LandmarkStoreService class abstract Landmark Store

High-level service for creating, registering and discovering landmark stores.

LandmarkStoreService is a static helper that manages landmark store lifecycle and discovery. Use it to create or register stores, look up existing stores by id or name, enumerate all available stores, obtain SDK-provided special-purpose store identifiers, and register listeners for store-level events. Typical flows include creating a store for importing landmarks, retrieving a store for queries, or removing an unused store.

See also:

Constructors

LandmarkStoreService()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

geofenceLandmarkStoreId → int
Returns the special-purpose landmark store id used for geofence data.
no setter
landmarkStores → List<LandmarkStore>
Returns a list containing all registered LandmarkStore instances.
no setter
mapAddressLandmarkStoreId → int
Returns the special-purpose landmark store id containing map address data.
no setter
mapCitiesLandmarkStoreId → int
Returns the special-purpose landmark store id for map cities data.
no setter
mapPoisLandmarkStoreId → int
Returns the special-purpose landmark store id used for map POIs.
no setter
mapRoadsLandmarkStoreId → int
Returns the special-purpose landmark store id for map roads data.
no setter
overlaysLandmarkStoreId → int
Returns the special-purpose landmark store id used for overlays.
no setter

Static Methods

addListener(LandmarkStoreListener listener) → void
Registers a LandmarkStoreListener to receive landmark store events.
createLandmarkStore(String name, {int zoom = -1, String folder = ''}) → LandmarkStore
Creates a new landmark store with the given name.
getLandmarkStoreById(int landmarkStoreId) → LandmarkStore?
Returns the LandmarkStore with the specified id, or null if not found.
getLandmarkStoreByName(String name) → LandmarkStore?
Returns the LandmarkStore with the specified name, or null if not found.
getLandmarkStoreType(int landmarkStoreId) → LandmarkStoreType
Returns the LandmarkStoreType for the specified store id.
registerLandmarkStore({required String name, required String path}) → int
Registers an existing landmark store that already exists on disk.
removeLandmarkStore(int landmarkStoreId) → void
Removes the landmark store identified by landmarkStoreId.
removeListener(LandmarkStoreListener listener) → void
Unregisters a previously added LandmarkStoreListener.