Class: KML

cercaliagl.layer/KML


Loads a KML file from URL or File/Blob and renders it as Cercalia layers. Point geometries are rendered using a MarkerLayer and line/polygon geometries are rendered using a FeatureLayer.

new KML(options)

Name Type Description
options

KML options

Name Type Description
layerId string

Layer id.

label string

Layer label.

attribution string

Attribution HTML.

beforeId string

Before layer id.

url string

Remote KML URL.

file File | Blob

Local KML file.

featureStyle module:cercaliagl/layer/KML~KMLFeaturesStyle

Local KML file.

Subclasses

Methods

getAttribution(){string}

getGeoJSON(){module:geojson~FeatureCollection}

getLabel(){string}

getLayerId(){string}

getLayersId(){Array.<string>}

reload(){Promise.<void>}