Skip to content

Commit

Permalink
Only flip quantized mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Oct 25, 2020
1 parent 3d414f5 commit 45ab2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/geo-layers/src/terrain-layer/terrain-layer.js
Expand Up @@ -107,7 +107,7 @@ export default class TerrainLayer extends CompositeLayer {
elevationDecoder
},
'quantized-mesh': {
bounds
bounds: [bounds[0], bounds[3], bounds[2], bounds[1]]
}
};
if (workerUrl !== null) {
Expand All @@ -130,7 +130,7 @@ export default class TerrainLayer extends CompositeLayer {
});
const bottomLeft = viewport.projectFlat([bbox.west, bbox.south]);
const topRight = viewport.projectFlat([bbox.east, bbox.north]);
const bounds = [bottomLeft[0], topRight[1], topRight[0], bottomLeft[1]];
const bounds = [bottomLeft[0], bottomLeft[1], topRight[0], topRight[1]];

const terrain = this.loadTerrain({
elevationData: dataUrl,
Expand Down

0 comments on commit 45ab2b9

Please sign in to comment.