An interface for providing styling information for vector features.
More...
#include <CesiumVectorOverlays/VectorStylingProvider.h>
An interface for providing styling information for vector features.
Definition at line 16 of file VectorStylingProvider.h.
◆ onStylePoints()
Styles a set of point features.
- Parameters
-
| asyncSystem | The async system. |
| model | The glTF model containing the features and metadata information. |
| featureIds | The feature IDs of the points to style. |
| points | The geometry of the points to style. This will be the same size as featureIds, and each point corresponds to the feature ID at the same index. |
- Returns
- A future that resolves to a vector of optional PointStyle objects, one for each point feature. The vector should be the same size as
featureIds andpoints. Ifstd::nulloptis provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size offeatureIdsandpoints`, the default style will be used for all features.
◆ onStylePolygons()
Styles a set of polygon features.
- Parameters
-
| asyncSystem | The async system. |
| model | The glTF model containing the features and metadata information. |
| featureIds | The feature IDs of the polygons to style. |
| polygons | The geometry of the polygons to style. This will be the same size as featureIds, and each polygon corresponds to the feature ID at the same index. |
- Returns
- A future that resolves to a vector of optional PolygonStyle objects, one for each polygon feature. The vector should be the same size as
featureIds and polygons. If std::nullopt is provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size of featureIds and polygons, the default style will be used for all features.
◆ onStylePolylines()
Styles a set of polyline features.
- Parameters
-
| asyncSystem | The async system. |
| model | The glTF model containing the features and metadata information. |
| featureIds | The feature IDs of the polylines to style. |
| polylines | The geometry of the polylines to style. This will be the same size as featureIds, and each polyline corresponds to the feature ID at the same index. |
- Returns
- A future that resolves to a vector of optional LineStyle objects, one for each polyline feature. The vector should be the same size as
featureIds and polylines. If std::nullopt is provided for a feature, the feature will use the default style. If the returned vector is empty or does not match the size of featureIds and polylines, the default style will be used for all features.
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumVectorOverlays/include/CesiumVectorOverlays/VectorStylingProvider.h