Hi,
This may seem an easy question.
But I need to activate the terrain exaggeration, without calling a new Cesium.Viewer...
for now I have:
var viewer = new Cesium.Viewer('cesiumContainer',{
terrainProvider: terrainProvider,
terrainExaggeration : 1.0202
});
But I need to activate it only at a certain function for only certain data.
therefore what I am trying to do is the following:
initial settings don't have terrain at all.
but at one point I have a function, if clicked, then:
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : '//assets.agi.com/stk-terrain/world'
});
region = Cesium.GeoJsonDataSource.load('sample.goejson');
viewer.terrainProvider = terrainProvider;
viewer.terrainExaggeration = 1.0201;
viewer.dataSources.add(region);
The terrain will be shown, but not exaggerated.
any thoughts?
Thanks