-
-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix globe terrain holes at poles (#5232)
* Fix terrain pole holes * Fix unit test * Bring back globe/terrain/fill-planet-pole test * Update build size * Changelog update, _meshDict -> _meshCache * Do not use terrain pole meshes when globe is disabled * Add test for mercator terrain * Fix unit tests
- Loading branch information
Showing
12 changed files
with
178 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+42.3 KB
...integration/render/tests/projection/globe/terrain/fill-planet-pole/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions
54
test/integration/render/tests/projection/globe/terrain/fill-planet-pole/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": {} | ||
}, | ||
"sky": { | ||
"atmosphere-blend": 0.0 | ||
}, | ||
"center": [ | ||
0.0, | ||
80.0 | ||
], | ||
"zoom": -0.5, | ||
"projection": { | ||
"type": "globe" | ||
}, | ||
"terrain": { | ||
"source": "terrain", | ||
"exaggeration": 2 | ||
}, | ||
"sources": { | ||
"terrain": { | ||
"type": "raster-dem", | ||
"tiles": ["local://tiles/{z}-{x}-{y}.terrain.png"], | ||
"maxzoom": 15, | ||
"tileSize": 256 | ||
}, | ||
"vector_tiles": { | ||
"type": "vector", | ||
"maxzoom": 0, | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "land", | ||
"type": "fill", | ||
"source": "vector_tiles", | ||
"source-layer": "water", | ||
"paint": { | ||
"fill-color": "blue" | ||
} | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.