UNPKG

@loaders.gl/kml

Version:

Framework-independent loader for the KML format

33 lines 1.38 kB
import type { LoaderOptions } from '@loaders.gl/loader-utils'; import type { GeoJSONTable, ObjectRowTable, BinaryFeatureCollection } from '@loaders.gl/schema'; export type TCXLoaderOptions = LoaderOptions & { tcx?: { shape?: 'object-row-table' | 'geojson-table' | 'binary' | 'raw'; }; }; /** * Loader for TCX (Training Center XML) - Garmin GPS track format */ export declare const TCXLoader: { readonly dataType: ObjectRowTable | GeoJSONTable | BinaryFeatureCollection; readonly batchType: never; readonly name: "TCX (Training Center XML)"; readonly id: "tcx"; readonly module: "kml"; readonly version: any; readonly extensions: ["tcx"]; readonly mimeTypes: ["application/vnd.garmin.tcx+xml"]; readonly text: true; readonly tests: ["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<TrainingCenterDatabase"]; readonly parse: (arrayBuffer: ArrayBuffer, options?: TCXLoaderOptions) => Promise<ObjectRowTable | GeoJSONTable | BinaryFeatureCollection>; readonly parseTextSync: typeof parseTextSync; readonly options: { readonly tcx: { readonly shape: "geojson-table"; }; readonly gis: {}; }; }; declare function parseTextSync(text: string, options?: TCXLoaderOptions): ObjectRowTable | GeoJSONTable | BinaryFeatureCollection; export {}; //# sourceMappingURL=tcx-loader.d.ts.map