UNPKG

@loaders.gl/kml

Version:

Framework-independent loader for the KML format

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