PolygonDataAccessor (API Reference)
Class PolygonDataAccessor
Polygon data accessor used for manipulating polygons that are part of a PolygonDataSource.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
-
Method Summary
Modifier and TypeMethodDescriptionGets polygon attributes accessor.Gets polygon geometry.voidsetAttributes(DataAttributes attributes) Replaces polygon attributes.voidsetGeometry(GeoPolygon geometry) Replaces polygon geometry.
-
Method Details
-
getGeometry
Gets polygon geometry.
- Returns:
The polygon geometry.
-
getAttributes
Gets polygon attributes accessor.
- Returns:
The polygon attributes accessor.
-
setGeometry
Replaces polygon geometry. The outer boundary has to be ordered clockwise and closed.
Altitude of the vertices is ignored.
The visual behaviour for self-intersecting outer boundary is undefined.
- Parameters:
geometry-Geometry of the polygon. The outer boundary has to be ordered clockwise and closed. Altitude of the vertices is ignored. The visual behaviour for self-intersecting outer boundary is undefined.
-
setAttributes
Replaces polygon attributes.
- Parameters:
attributes-The attributes.
-