Home > @magiclane/maps-sdk > Path > create

Path.create() method

Create a path from a data buffer of a given format.

Signature:

static create(params: {
        data: Uint8Array;
        format?: PathFileFormat;
    }): Path;

Parameters

Parameter

Type

Description

params

{ data: Uint8Array; format?: PathFileFormat; }

Object containing: - data: The data buffer. - format: The data format (optional).

params properties:

Returns:

Path

The created path