![]() |
Cesium for Unity 1.23.0
|
Represents an object in a GeoJSON document. More...
Public Member Functions | |
| partial CesiumGeoJsonObjectType | GetObjectType () |
| Gets the type of this GeoJSON object. | |
| partial bool | IsValid () |
| Checks whether this GeoJSON object is valid. | |
| partial CesiumGeoJsonFeature | GetObjectAsFeature () |
| Gets this object as a CesiumGeoJsonFeature, if it is a Feature. | |
| partial CesiumGeoJsonFeature[] | GetObjectAsFeatureCollection () |
| Gets the features in this FeatureCollection. | |
| partial double3 | GetObjectAsPoint () |
| Gets this object as a Point geometry. | |
| partial double3[] | GetObjectAsMultiPoint () |
| Gets this object as a MultiPoint geometry. | |
| partial CesiumGeoJsonLineString | GetObjectAsLineString () |
| Gets this object as a LineString geometry. | |
| partial CesiumGeoJsonLineString[] | GetObjectAsMultiLineString () |
| Gets this object as a MultiLineString geometry. | |
| partial CesiumGeoJsonPolygon | GetObjectAsPolygon () |
| Gets this object as a Polygon geometry. | |
| partial CesiumGeoJsonPolygon[] | GetObjectAsMultiPolygon () |
| Gets this object as a MultiPolygon geometry. | |
| partial CesiumGeoJsonObject[] | GetObjectAsGeometryCollection () |
| Gets this object as a GeometryCollection. | |
| partial bool | HasStyle () |
| Checks whether this GeoJSON object has a style. | |
| partial CesiumVectorStyle | GetStyle () |
| Gets the style of this GeoJSON object. | |
| partial void | SetStyle (CesiumVectorStyle style) |
| Sets the style of this GeoJSON object. | |
| partial void | ClearStyle () |
| Clears any style set on this GeoJSON object. | |
Represents an object in a GeoJSON document.
A GeoJSON object can be a geometry (Point, LineString, Polygon, etc.), a Feature (geometry with properties), or a collection of other objects. Use GetObjectAsFeature to access Feature-specific data, or GetObjectAsFeatureCollection to access the features in a FeatureCollection.
Definition at line 20 of file CesiumGeoJsonObject.cs.
| partial void CesiumForUnity.CesiumGeoJsonObject.ClearStyle | ( | ) |
Clears any style set on this GeoJSON object.
After calling this method, the object will inherit its style from its parent, or use the default style if no parent has a style.
| partial CesiumGeoJsonFeature CesiumForUnity.CesiumGeoJsonObject.GetObjectAsFeature | ( | ) |
Gets this object as a CesiumGeoJsonFeature, if it is a Feature.
| partial CesiumGeoJsonFeature[] CesiumForUnity.CesiumGeoJsonObject.GetObjectAsFeatureCollection | ( | ) |
Gets the features in this FeatureCollection.
| partial CesiumGeoJsonObject[] CesiumForUnity.CesiumGeoJsonObject.GetObjectAsGeometryCollection | ( | ) |
Gets this object as a GeometryCollection.
| partial CesiumGeoJsonLineString CesiumForUnity.CesiumGeoJsonObject.GetObjectAsLineString | ( | ) |
Gets this object as a LineString geometry.
| partial CesiumGeoJsonLineString[] CesiumForUnity.CesiumGeoJsonObject.GetObjectAsMultiLineString | ( | ) |
Gets this object as a MultiLineString geometry.
| partial double3[] CesiumForUnity.CesiumGeoJsonObject.GetObjectAsMultiPoint | ( | ) |
Gets this object as a MultiPoint geometry.
| partial CesiumGeoJsonPolygon[] CesiumForUnity.CesiumGeoJsonObject.GetObjectAsMultiPolygon | ( | ) |
Gets this object as a MultiPolygon geometry.
| partial double3 CesiumForUnity.CesiumGeoJsonObject.GetObjectAsPoint | ( | ) |
Gets this object as a Point geometry.
| partial CesiumGeoJsonPolygon CesiumForUnity.CesiumGeoJsonObject.GetObjectAsPolygon | ( | ) |
Gets this object as a Polygon geometry.
| partial CesiumGeoJsonObjectType CesiumForUnity.CesiumGeoJsonObject.GetObjectType | ( | ) |
Gets the type of this GeoJSON object.
| partial CesiumVectorStyle CesiumForUnity.CesiumGeoJsonObject.GetStyle | ( | ) |
Gets the style of this GeoJSON object.
| partial bool CesiumForUnity.CesiumGeoJsonObject.HasStyle | ( | ) |
Checks whether this GeoJSON object has a style.
| partial bool CesiumForUnity.CesiumGeoJsonObject.IsValid | ( | ) |
Checks whether this GeoJSON object is valid.
| partial void CesiumForUnity.CesiumGeoJsonObject.SetStyle | ( | CesiumVectorStyle | style | ) |
Sets the style of this GeoJSON object.
| style | The style to set. |