Skip to content

Commit

Permalink
fix(GlobeLayer): doesn't subdivise the pole tile mesh.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Feb 16, 2021
1 parent 5be30b7 commit 53a9f6f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Core/Prefab/Globe/GlobeLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,17 @@ class GlobeLayer extends TiledGeometryLayer {
return occupancy;
}

subdivision(context, layer, node) {
if (node.level == 5) {
const row = node.getExtentsByProjection(CRS.tms_4326)[0].row;
if (row == 31 || row == 0) {
// doesn't subdivise the pole
return false;
}
}
return super.subdivision(context, layer, node);
}

culling(node, camera) {
if (super.culling(node, camera)) {
return true;
Expand Down

0 comments on commit 53a9f6f

Please sign in to comment.