Error while loading GeoJSON, related to WebGL rendering

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

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.

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.