KMLLoader
The KMLLoader
parses KML files into GeoJSON. From Wikipedia:
Keyhole Markup Language (KML) is an XML notation for expressing geographic annotation and visualization within two-dimensional maps and three-dimensional Earth browsers.
KML is now an Open Geospatial Consortium standard.
Loader | Characteristic |
---|---|
File Extension | .kml |
File Type | Text |
File Format | KML |
Data Format | GIS |
Decoder Type | Synchronous |
Worker Thread Support | No |
Streaming Support | No |
Usage
import {KMLLoader} from '@loaders.gl/kml';
import {load} from '@loaders.gl/core';
const data = await load(url, KMLLoader, 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/polyfills
for theDOMParser
polyfill.