API / geotoolkit / map / util / KML / KML
KML (Keyhole Markup Language) parser
Constructors
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static parse(xmlElement, iGetFeatureId?, crsConversion?, invalidateHandler?, styles?, features?): AbstractFeature[]
Creates GeoToolkit Shape-based AbstractFeature objects based on KML features
| Name | Type | Description |
|---|---|---|
xmlElement | Element | XMLDocument | DOMElement object that contains all the features data in KML format |
Optional iGetFeatureId | IGetId | how to retrieve feature id from geoJson feature's properties |
Optional crsConversion | CrsConversion | function for converting points into the map coordinate system |
Optional invalidateHandler | () => void | function to be called when async templates are ready to be drawn |
Optional styles | Record<string, Record<string, BaseTemplate>> | styles map that contains connection between style ids and feature templates |
Optional features | AbstractFeature[] | features array to store parsed features (new array created if not provided) |
features