Skip to content

Commit

Permalink
Tweak viewer app
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Jan 26, 2023
1 parent 33e32da commit 0286bf2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Apps/CesiumViewer/CesiumViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,10 @@ async function main() {
try {
const hasBaseLayerPicker = !defined(imageryProvider);

let terrainProvider;
if (hasBaseLayerPicker) {
terrainProvider = await createWorldTerrainAsync({
requestWaterMask: true,
requestVertexNormals: true,
});
}
const terrainProvider = await createWorldTerrainAsync({
requestWaterMask: true,
requestVertexNormals: true,
});

viewer = new Viewer("cesiumContainer", {
imageryProvider: imageryProvider,
Expand Down

0 comments on commit 0286bf2

Please sign in to comment.