diff --git a/src/Core/Commander/Providers/WMTS_Provider.js b/src/Core/Commander/Providers/WMTS_Provider.js index 169bd5f532..5427cfb038 100644 --- a/src/Core/Commander/Providers/WMTS_Provider.js +++ b/src/Core/Commander/Providers/WMTS_Provider.js @@ -368,6 +368,7 @@ define('Core/Commander/Providers/WMTS_Provider', [ var promises = []; var paramMaterial = []; + // Request parent's texture if no texture at all var lookAtAncestor = tile.material.getLevelLayerColor(1) === -1; for (var i = 0; i < layerWMTSId.length; i++) { diff --git a/src/Globe/TileMesh.js b/src/Globe/TileMesh.js index 891ef8822a..d9d2acb657 100644 --- a/src/Globe/TileMesh.js +++ b/src/Globe/TileMesh.js @@ -265,13 +265,15 @@ define('Globe/TileMesh', [ TileMesh.prototype.downScaledLayer = function(id) { - if(id === l_ELEVATION) - if(this.currentElevation === -2) + if(id === l_ELEVATION) { + if(this.currentElevation === -2) { return false; - else + } else { return this.currentElevation < this.levelElevation ; - else if(id === l_COLOR) + } + } else if(id === l_COLOR) { return this.material.getLevelLayerColor(l_COLOR) < this.level + this.material.getDelta(); + } return false; };