Describes a polygon defined by an hierarchy of linear rings which make up the outer shape and any nested holes.
The polygon conforms to the curvature of the globe and can be placed on the surface or
at altitude and can optionally be extruded into a volume.
alias PolygonGraphics
- The options object takes the following properties
- {Property} [options.hierarchy] A Property specifying the PolygonHierarchy
- {Property} [options.height=0] A numeric Property specifying the altitude of the polygon relative to the ellipsoid surface.
- {Property} [options.extrudedHeight] A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface.
- {Property} [options.show=true] A boolean Property specifying the visibility of the polygon.
- {Property} [options.fill=true] A boolean Property specifying whether the polygon is filled with the provided material.
- {MaterialProperty} [options.material=Color.WHITE] A Property specifying the material used to fill the polygon.
- {Property} [options.outline=false] A boolean Property specifying whether the polygon is outlined.
- {Property} [options.outlineColor=Color.BLACK] A Property specifying the Color of the outline.
- {Property} [options.outlineWidth=1.0] A numeric Property specifying the width of the outline.
- {Property} [options.stRotation=0.0] A numeric property specifying the rotation of the polygon texture counter-clockwise from north.
- {Property} [options.granularity=Cesium.Math.RADIANS_PER_DEGREE] A numeric Property specifying the angular distance between each latitude and longitude point.
- {Property} [options.perPositionHeight=false] A boolean specifying whether or not the the height of each position is used.
- {Boolean} [options.closeTop=true] When false, leaves off the top of an extruded polygon open.
- {Boolean} [options.closeBottom=true] When false, leaves off the bottom of an extruded polygon open.
Describes a polygon defined by an hierarchy of linear rings which make up the outer shape and any nested holes. The polygon conforms to the curvature of the globe and can be placed on the surface or at altitude and can optionally be extruded into a volume.
alias PolygonGraphics
- The options object takes the following properties - {Property} [options.hierarchy] A Property specifying the PolygonHierarchy - {Property} [options.height=0] A numeric Property specifying the altitude of the polygon relative to the ellipsoid surface. - {Property} [options.extrudedHeight] A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface. - {Property} [options.show=true] A boolean Property specifying the visibility of the polygon. - {Property} [options.fill=true] A boolean Property specifying whether the polygon is filled with the provided material. - {MaterialProperty} [options.material=Color.WHITE] A Property specifying the material used to fill the polygon. - {Property} [options.outline=false] A boolean Property specifying whether the polygon is outlined. - {Property} [options.outlineColor=Color.BLACK] A Property specifying the Color of the outline. - {Property} [options.outlineWidth=1.0] A numeric Property specifying the width of the outline. - {Property} [options.stRotation=0.0] A numeric property specifying the rotation of the polygon texture counter-clockwise from north. - {Property} [options.granularity=Cesium.Math.RADIANS_PER_DEGREE] A numeric Property specifying the angular distance between each latitude and longitude point. - {Property} [options.perPositionHeight=false] A boolean specifying whether or not the the height of each position is used. - {Boolean} [options.closeTop=true] When false, leaves off the top of an extruded polygon open. - {Boolean} [options.closeBottom=true] When false, leaves off the bottom of an extruded polygon open.
Entity demo Sandcastle Polygon Demo