Hi,
Data to display on the map is loaded using a GeoJSON and it contains a range of Points, MultiLineStrings and Polygons.
I would like to know is it possible to pass on styling information in the GeoJSON like how CZML does.
Currently I am doing the following to style it:
const entities = dataSource.entities.values;
for (let i = 0; i < entities.length; i++) {
const entity = entities[i];
//Set the polygon material to our random color.
if (entity.properties.entity._value !== null &&
entity.properties.entity._value.toLowerCase().includes('line')) {
entity.polyline.material = new Cesium.PolylineDashMaterialProperty({
color: Cesium.Color.DARKGREEN,
dashLength: 8.0,
});
entity.polyline.width = 3;
entity.polyline.clampToGround = true;
}
}```
If it is possible to pass on the style in GeoJSON it would make it easier.
Any help is highly appreciated.
Thanks