Skip to content

Commit

Permalink
Dont use newTerrainProviderOptions when calling createWorldTerrain
Browse files Browse the repository at this point in the history
fixes #147
  • Loading branch information
raitisbe committed Jan 11, 2019
1 parent 90941b0 commit 426021b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/hscesium/hs_cesium_layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ define(['ol', 'moment', 'proj4'],
if (angular.isDefined(data) && angular.isDefined(data.type) && data.type == 'terrain') {
if(data.url == 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles') {
var terrain_provider = Cesium.createWorldTerrain(me.config.createWorldTerrainOptions);
if (me.config.newTerrainProviderOptions) terrain_provider = new Cesium.CesiumTerrainProvider(me.config.newTerrainProviderOptions);
me.viewer.terrainProvider = terrain_provider;
} else {
me.viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
Expand Down

0 comments on commit 426021b

Please sign in to comment.