Class: KmlPolygon

KmlPolygon(options)

Contains the data associated with Kml polygon

Constructor

new KmlPolygon(options)

Constructs an KmlPolygon. Application usually don't call this constructor. It is called by KmlFile as Objects from KmlFile are read. It is concrete implementation. It is Polygon and KmlGeometry.
Parameters:
Name Type Description
options Object
Properties
Name Type Description
objectNode Node Node representing Polygon
style Promise Promise of styles to be applied to this Polygon.
Source:
See:
Throws:
If either the node is null or undefined.
Type
ArgumentError

Members

(readonly) kmlAltitudeMode :String

It explains how we should treat the altitude of the polygon. Possible choices are explained in: https://developers.google.com/kml/documentation/kmlreference#point
Type:
  • String
Source:

(readonly) kmlCenter :Position

It returns center of outer boundaries of the polygon.
Type:
Source:

(readonly) kmlExtrude :Boolean

In case that the polygon is above ground, this property decides whether there is going to be a line to the ground.
Type:
  • Boolean
Source:

(readonly) kmlOuterBoundary :KmlLinearRing

Outer boundary of this polygon represented as a LinearRing.
Type:
Source:

(readonly) kmlTessellate :Boolean

Whether tessellation should be used for current node.
Type:
  • Boolean
Source:

Methods

createPolygon(styles)

Internal use only. Once create the instance of actual polygon.
Parameters:
Name Type Description
styles Object | null
Properties
Name Type Description
normal KmlStyle Style to apply when not highlighted
highlight KmlStyle Style to apply when item is highlighted. Currently ignored.
Source:

getStyle()

Source:

getTagNames()

Source:

prepareAttributes()

Source:

prepareLocations()

Source:

render()

Source: