1. A concise explanation of the problem you’re experiencing.
I am trying to overlay Vector data in GeoJSON format on elevation data in .terrain format. For the first time it displays but when I try to zoom, it throws up OUT OF MEMORY error.
Later I restarted my PC and commented
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
//Add terrain
var viewer = new Cesium.Viewer(‘cesiumContainer’);
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : ‘http://localhost:8079/tilesets/MyElevationData’,
requestWaterMask : true,
requestVertexNormals : true
});
viewer.terrainProvider = cesiumTerrainProviderMeshes;
//viewer.zoomTo(cesiumTerrainProviderMeshes);
viewer.scene.globe.depthTestAgainstTerrain = true;
//Load data - From toposheets in GeoJSON format
var dataSource = Cesium.GeoJsonDataSource.load(’…/GeoJSON/myTopodata.geojson’);
viewer.dataSources.add(dataSource);
viewer.zoomTo(dataSource);
Cesium.GeoJsonDataSource.clampToGround = true;
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I have a set of Elevation, Topographic, Vector and Raster data of a particular Arear. I need to overlay all these on top of each other.
If you know a better way that would be great
4. The Cesium version you’re using, your operating system and browser.
Cesium “1.42.0”, Windows 10, IE11 and Chrome