Home > @magiclane/maps-sdk > LandmarkStore > importLandmarksWithDataBuffer

LandmarkStore.importLandmarksWithDataBuffer() method

Asynchronously import landmarks from given buffer format

Signature:

importLandmarksWithDataBuffer(input: {
        buffer: Uint8Array;
        format: LandmarkFileFormat;
        image: Img;
        onComplete?: (error: GemError) => void;
        onProgressUpdated?: (progress: number) => void;
        categoryId?: number;
    }): ProgressListener | null;

Parameters

Parameter

Type

Description

{ buffer, format, image, onComplete, onProgressUpdated, categoryId, }

(not declared)

input

{ buffer: Uint8Array; format: LandmarkFileFormat; image: Img; onComplete?: (error: GemError) => void; onProgressUpdated?: (progress: number) => void; categoryId?: number; }

input properties:

  • buffer: Uint8Array
  • 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.