Polygon
A Polygon is defined by an outer boundary and 0 or more inner boundaries. The boundaries, in turn, are defined by LinearRings. When a Polygon is extruded, its boundaries are connected to the ground to form additional polygons, which gives the appearance of a building or a box. Extruded Polygons use PolyStyle for their color, color mode, and fill.
The
Constructors
Properties
Specifies how altitude components in the
Boolean value. Specifies whether to connect the Polygon to the ground. To extrude a Polygon, the altitude mode must be either AltitudeMode.relativeToGround, AltitudeMode.relativeToSeaFloor, or AltitudeMode.absolute. Only the vertices are extruded, not the geometry itself (for example, a rectangle turns into a box with five faces). The vertices of the Polygon are extruded toward the center of the Earth's sphere.
Contains a LinearRing element. A Polygon can contain multiple innerBoundaryIs elements, which create multiple cut-outs inside the Polygon.
Contains a LinearRing element.
This field is not used by Polygon. To allow a Polygon to follow the terrain (that is, to enable tessellation) specify an altitude mode of AltitudeMode.clampToGround or AltitudeMode.clampToSeaFloor.