Skip to content

worldwind-ui API / worldwind-kit / loadKml

Function: loadKml() ​

loadKml(worldWind, url, layer): Promise<unknown>

Defined in: kit/src/kml.ts:6

Loads a KML or KMZ document from a URL and adds it to a renderable layer. Resolves with WorldWind's KmlFile.

Parameters ​

worldWind ​

WorldWindStatic

url ​

string

layer ​

WWRenderableLayer

Returns ​

Promise<unknown>

MIT licensed. Not affiliated with NASA; WorldWind is NASA's open-source virtual globe.