Hi everyone,I have a kml file and I want to show it in cesium. I made changes to the polygons, lines and billboards in the codes below, but I cannot change the point data. Points are shown on the map, but the console says point location is undefined. How can I make changes? Thanks in advance
// KmlDataSource referance update
kmlDataSourceRef.current = kmlDataSource;
// Customize the entities as needed
entities.forEach((entity) => {
console.log(entity.entityCollection.collectionChanged, "entity");
if (entity.polyline) {
entity.polyline.arcType = Cesium.ArcType.GEODESIC;
entity.polyline.clampToGround = true;
}
if (entity.polygon) {
//console.log(entity.polygon.hierarchy);
entity.polygon.heightReference = Cesium.HeightReference.CLAMP_TO_GROUND;
let height = entity.polygon.hierarchy.getValue(Cesium.JulianDate.now()).positions[0].z / 100000;
entity.polygon.extrudedHeight = height;
entity.polygon.material = Cesium.Color.YELLOW.withAlpha(0.5);
entity.polygon.fill = true;
entity.polygon.outlineColor = Cesium.Color.AQUA;
}
if (entity.billboard) {
entity.billboard.heightReference = Cesium.HeightReference.CLAMP_TO_GROUND;
entity.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY;
}
});