Skip to content

Commit

Permalink
fixed bound layers
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmtech committed May 5, 2017
1 parent eef90df commit ceff085
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/core/map/draw-tiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,9 @@ MapDrawTiles.prototype.getTileTextureTransform = function(sourceTile, targetTile
MapDrawTiles.prototype.updateTileSurfaceBounds = function(tile, submesh, surface, bound, fullUpdate) {
var path, extraBound, layer, texture;

//if (tile.id[0] == 18 && tile.id[1] == 70930 && tile.id[2] == 44286) {
// tile = tile;
//}
if (tile.id[0] == 18 && tile.id[1] == 70930 && tile.id[2] == 44286) {
tile = tile;
}

//search map view
if (surface.boundLayerSequence.length > 0) {
Expand Down Expand Up @@ -671,7 +671,8 @@ MapDrawTiles.prototype.updateTileSurfaceBounds = function(tile, submesh, surface
bound.transparent = true;
}

var fullAndOpaque = !((surface.boundLayerSequence[j][1] < 1.0) || texture.extraBound || texture.getMaskTexture() || layer.isTransparent);
//var fullAndOpaque = !((surface.boundLayerSequence[j][1] < 1.0) || texture.extraBound || texture.getMaskTexture() || layer.isTransparent);
var fullAndOpaque = !((surface.boundLayerSequence[j][1] < 1.0) || extraBound || texture.getMaskTexture() || layer.isTransparent);
if (fullAndOpaque) {
fullAndOpaqueCounter++;
}
Expand Down Expand Up @@ -762,6 +763,12 @@ MapDrawTiles.prototype.updateTileSurfaceBounds = function(tile, submesh, surface
}
}
}

if (tile.id[0] == 18 && tile.id[1] == 70930 && tile.id[2] == 44286) {
console.log(JSON.stringify(bound.sequence))
//tile = tile;
}

};


Expand Down

0 comments on commit ceff085

Please sign in to comment.