1. A concise explanation of the problem you’re experiencing.
I am having 100 polygons. You can see it in the attached image. They are all very near to each other. After placing them the performance is getting very slow when we go near to them.
How to fix this issue?. otherwise Is there any other way to load multiple polygons without performance issues?
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
for (let i= 0; i< 100; i++) {
var Strips = new Cesium.GeometryInstance({
geometry: new Cesium.PolygonGeometry({
polygonHierarchy: new Cesium.PolygonHierarchy(
Cesium.Cartesian3.fromDegreesArray(polygonArray[i])
)
}),
attributes: {
color: Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromRandom()),
}
});
viewer.scene.primitives.add(new Cesium.GroundPrimitive({
geometryInstances: Strips,
}));
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.