Static ReadonlyinvalidStatic ReadonlyuncategorizedGet the landmark store image.
The image of the landmark. The user is responsible to check if the image is valid.
Add a new category to the store.
After this method call, the category object that is passed as a parameter belongs to this landmark store. The category must have a name.
The category to be added
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.
The landmark to be added to the landmark store in the specified category.
The ID of the category where the landmark will be added.
Create a landmarks browse session with the specified settings
Shows only the landmarks added before the LandmarkBrowseSession was created
Optionalsettings: LandmarkBrowseSessionSettingsThe settings for the landmarks browse session. If not specified, the default settings are used
The landmarks browse session
Get the list of categories for the specified landmark.
The id of the landmark.
The list of categories
Get the category by ID.
The category ID
The category if found, null otherwise
Get the specified landmark.
The landmark id.
The Landmark object if found, null otherwise.
Get the number of all landmarks within the specified category.
If the category ID is uncategorizedLandmarkCategId, the uncategorized landmarks count is returned. If the category ID is invalidLandmarkCategId, the total landmarks count is returned.
The category ID
The number of landmarks
Get the landmarks within the specified category.
The category id for which landmarks are retrieved (default LandmarkCategory.invalidLandmarkCategId, meaning all categories). If the category ID is LandmarkCategory.uncategorizedLandmarkCategId, all uncategorized landmarks are retrieved. If the category ID is LandmarkCategory.invalidLandmarkCategId, all landmarks are retrieved.
The landmark list.
Get the landmarks within the specified area.
Object containing filter parameters
Optionalarea?: GeographicAreaThe geographic area queried for landmarks.
OptionalcategoryId?: numberThe category id for which landmarks are retrieved (default LandmarkCategory.invalidLandmarkCategId, meaning all categories). If the category ID is uncategorizedLandmarkCategId, all uncategorized landmarks are retrieved. If the category ID is invalidLandmarkCategId, all landmarks are retrieved.
The landmark list corresponding to given criteria.
Asynchronously import landmarks from given file format
Object containing import parameters
OptionalcategoryId?: numberThe category for the new imported landmarks. The category must exist or use uncategorizedLandmarkCategId to set the landmark as uncategorized
The file path
The file format, see LandmarkFileFormat.
The landmark map image. If left empty, a default image is assigned
OptionalonComplete?: (error: GemError) => voidCallback that gets triggered with the associated GemError when the update process is completed.
OptionalonProgressUpdated?: (progress: number) => voidCallback that gets triggered with the associated progress when the update process is in progress.
The associated ProgressListener if the request can be started, null otherwise.
Asynchronously import landmarks from given buffer format
Object containing import parameters
The data buffer.
OptionalcategoryId?: numberThe category for the new imported landmarks. The category must exist or use uncategorizedLandmarkCategId to set the landmark as uncategorized
The file format, see LandmarkFileFormat.
The landmark map image. If left empty, a default image is assigned
OptionalonComplete?: (error: GemError) => voidCallback that gets triggered with the associated GemError when the update process is completed.
OptionalonProgressUpdated?: (progress: number) => voidCallback that gets triggered with the associated progress when the update process is in progress.
The associated ProgressListener if the request can be started, null otherwise.
ProtectedregisterRegisters an object for auto release. When the object is not used anymore, it will be released automatically from C++.
The pointer ID to register
Remove the specified category.
The category ID.
Request to remove all landmarks belonging to the category. If removeLmkContent is false, the landmarks belonging to the category are marked uncategorized.
Set the landmark store image.
Setting a valid landmark store image will override individual items images, see Landmark.getImage Setting an empty landmark store image will restore individual items images, see Landmark.getImage
The landmark store image.
GemError.success on success
Set landmark category id
The landmark object
The category ID
Start landmark store fast update mode
Fast update mode - allow fast insert, delete and update operations. This mode should be used with caution because if a power failure or process crash interrupts it, the database will likely be corrupted and will be deleted at next startup.
This is intended for fast import of external landmarks into application format
Update the specified category.
The category object must belong to this landmark store. No fields of the parameter will be updated by this call.
The category to be updated
Update the information about a landmark.
This updates only the information about a landmark and does not modify the categories the landmark belongs to. The landmark instance passed in as the parameter must be an instance that belongs to this landmark store. Calling this method updates the timestamp of the landmark.
The landmark to be updated.
Provides access to a landmark store and its operations.
This class should not be instantiated directly. Instead, use the related methods from LandmarkStoreService to obtain an instance.
It represents a single persistence store instance and is the primary entry point for reading, adding, updating and removing landmark data and categories, plus creating scoped browse sessions for iterative access.
Typical tasks include enumerating and filtering landmarks (by category or geographic area), creating and modifying categories, importing external landmark datasets. Main members expose store identity and metadata, collections of category and landmark objects.
Can be presented on the map using the LandmarkStoreCollection associated with a GemMapController, in for custom search operations and for alerts.