GPXLoader
The GPXLoader parses GPX files into GeoJSON. From Wikipedia:
| Loader | Characteristic |
|---|---|
| File Extension | .gpx |
| File Type | Text |
| File Format | GPX |
| Data Format | GIS |
| Decoder Type | Synchronous |
| Worker Thread Support | No |
| Streaming Support | No |
Usage​
import {GPXLoader} from '@loaders.gl/kml';
import {load} from '@loaders.gl/core';
const data = await load(url, GPXLoader, options);
Options​
| Option | Type | Default | Description |
|---|---|---|---|
gis.format | string | 'geojson' | Can be set to 'raw', 'geojson' or 'binary'. |
Limitations​
- In Node.JS, applications must import
@loaders.gl/polyfillsfor theDOMParserpolyfill.