Home > @magiclane/maps-sdk > DataSource > createLogDataSource

DataSource.createLogDataSource() method

Create a new log data source based on a log file

Signature:

static createLogDataSource(logPath: string): DataSource | null;

Parameters

Parameter

Type

Description

logPath

string

The log file path. The log file should not be a .gm file. Other formats such as .gpx are supported.

Returns:

DataSource | null

The created DataSource or null if failed