Out of memory error if I load multiple GeoJSON

1. A concise explanation of the problem you’re experiencing.

When I load multiple GeoJSON vector layers, each of 23 MB size, the webapp hangs and throws out OutOfMemory error.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

//Load data - From toposheets
Cesium.GeoJsonDataSource.clampToGround = true;

var dataSource = Cesium.GeoJsonDataSource.load(’…/GeoJSON/Topo1.geojson’);
viewer.dataSources.add(dataSource);

var dataSource2 = Cesium.GeoJsonDataSource.load(’…/GeoJSON/Topo2.geojson’);
viewer.dataSources.add(dataSource2);

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to load multiple Point/Polygon vector layers

4. The Cesium version you’re using, your operating system and browser.

1.42

Loading a lot of data at once can cause a lot of performance issues. We are working on a pipeline to convert geoJson data into 3D Tiles, which is a format designed to perform much more efficiently. To work with us to convert your data, contact tim@agi.com.

Thanks!

Gabby