Skip to content

Commit 0c46a1e

Browse files
baloolaofftherailz
authored andcommitted
Fix #3134 Temporary disabling the terrain (#3165)
1 parent 08321b7 commit 0c46a1e

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

web/client/components/map/cesium/Map.jsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,16 @@ class CesiumMap extends React.Component {
172172
if (rawOptions.terrainProvider) {
173173
let {type, ...tpOptions} = rawOptions.terrainProvider;
174174
switch (type) {
175-
case "cesium": {
176-
overrides.terrainProvider = new Cesium.CesiumTerrainProvider(tpOptions);
177-
break;
178-
}
179-
default:
180-
break;
175+
case "cesium": {
176+
overrides.terrainProvider = new Cesium.CesiumTerrainProvider(tpOptions);
177+
break;
178+
}
179+
case "ellipsoid": {
180+
overrides.terrainProvider = new Cesium.EllipsoidTerrainProvider();
181+
break;
182+
}
183+
default:
184+
break;
181185
}
182186
}
183187
return assign({}, rawOptions, overrides);

web/client/examples/3dviewer/containers/Viewer.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ class Viewer extends React.Component {
4545
static defaultProps = {
4646
mapOptions: {
4747
terrainProvider: {
48-
type: "cesium",
49-
url: "https://assets.agi.com/stk-terrain/world",
50-
requestVertexNormals: true
48+
type: "ellipsoid"
5149
}
5250
}
5351
};

web/client/localConfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
"flyTo": true,
1717
"navigationTools": true,
1818
"terrainProvider": {
19-
"type": "cesium",
20-
"url": "https://assets.agi.com/stk-terrain/world",
21-
"requestVertexNormals": true
19+
"type": "ellipsoid"
2220
}
2321
}
2422
},

0 commit comments

Comments
 (0)