Class: KML

og/layer/KML.KML

Layer to render KMLs files

new module:og/layer/KML.KML(name, options)

Name Type Description
name string
options * optional

Extends

  • Vector

Members

_colorstring

Methods

asyncaddKmlFromFiles(kmls, color, billboard){Promise.<{entities: Array.<Entity>, extent: Extent}>}

Name Type Default Description
kmls Array.<File>
color string null optional
billboard Billboard null optional
Returns:
Type Description
Promise.<{entities: Array.<Entity>, extent: Extent}>

asyncaddKmlFromUrl(url, color, billboard){Promise.<{entities: Array.<Entity>, extent: Extent}>}

Name Type Default Description
url string Url of the KML to display. './myFile.kml' or 'http://mySite/myFile.kml' for example.
color string null optional
billboard Billboard null optional
Returns:
Type Description
Promise.<{entities: Array.<Entity>, extent: Extent}>

setColor(color)

Name Type Description
color string