SCK
March 21, 2018, 11:48am
1
1. A concise explanation of the problem you’re experiencing.
Following is the error when I load GeoJSON of 15 MB
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
Cesium.GeoJsonDataSource.clampToGround = true;
var dataSource = Cesium.GeoJsonDataSource.load(’…/GeoJSON/CINTBR_7102.geojson’);
viewer.dataSources.add(dataSource);
viewer.zoomTo(dataSource);
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
For a Project
4. The Cesium version you’re using, your operating system and browser.
1.42 cesium, win 10, chrome 65.0
Are you defining the viewer anywhere, like in this example ? It looks like you are not from the first error in your console.
Thanks,
Gabby
SCK
March 26, 2018, 4:07am
3
Yes, I am defining
var viewer = new Cesium.Viewer(‘cesiumContainer’);
If I convert the same GeoJSON to KML, it works fine
Got it. It looks like you are just adding a lot of entities to the scene which is what is causing the WebGL error. Can you look into converting your data to 3D Tiles ? They handle loading in the appropriate amount of data for different views and levels of detail.
SCK
March 28, 2018, 3:41am
5
Thanks
I have another issue while rendering KML line layer
It does not clamp to ground is there any support to clamp line to terrain layer ?
With Warm Regards,
Sowjanya Kiran kumar
We’re working on clamping polylines to terrain , look for it in the near future.