Variable dataConst

data: {
    get: (
        dataId: string,
        options?: GetDataOptions,
    ) => Promise<FeatureCollection<Geometry, { [name: string]: any }>>;
} = ...

The data namespace contains an asynchronous function to call the MapTiler Data API. The Data API provides a way to retrieve user data in GeoJSON format.

Type Declaration

  • get: (
        dataId: string,
        options?: GetDataOptions,
    ) => Promise<FeatureCollection<Geometry, { [name: string]: any }>>

Was this helpful?

Client JS
Reference
data