Home > @magiclane/maps-sdk > LandmarkStore > importLandmarks
LandmarkStore.importLandmarks() method
Asynchronously import landmarks from given file format
Signature:
importLandmarks(input: {
filePath: string;
format: LandmarkFileFormat;
image: Img;
onComplete?: (error: GemError) => void;
onProgressUpdated?: (progress: number) => void;
categoryId?: number;
}): ProgressListener | null;Parameters
Parameter | Type | Description |
|---|---|---|
{ filePath, format, image, onComplete, onProgressUpdated, categoryId, } | (not declared) | |
input | { filePath: string; format: LandmarkFileFormat; image: Img; onComplete?: (error: GemError) => void; onProgressUpdated?: (progress: number) => void; categoryId?: number; } |
input properties:
- filePath: string
- format: LandmarkFileFormat
- image: Img
- Optional onComplete?: (error: GemError) => void
- Optional onProgressUpdated?: (progress: number) => void
- Optional categoryId?: number
Returns:
ProgressListener | null
The associated ProgressListener if the request can be started, null otherwise.
Exceptions
An exception if it fails.