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:
- data: Uint8Array
- Optional format?: PathFileFormat
Returns:
The created path