Fix: #11516, #11041. Terrain: buildings on tile borders. #11530
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #11516: unecessary optimization approach disabled border intersection calculation for complex polygons: when enumerating polygon rings, if previous rings were outside aabb calculated so far would prevent check if edge crosses tile border and would, as a consequence, disable joining and displaying features split and asserting on check (in dev build).
Backporting fill extrusions on terrain #11041 fix from gl-native is related: when adjacent tiles are of different zooms, breaks or no building parts were visible.
Situation before this PR:
before.mov
After:
after.mov
Render tests:
render-tests/fill-extrusion-terrain/flat-roof-over-border-of-different-zoom && zoomin removed from ignore list
Skipped changelog - cosmetic issue (missing building parts) that doesn't assert in production code.
Fixes: #11516, #11041
Launch Checklist
- [ ] document any changes to public APIs- [ ] post benchmark scores- [ ] tagged@mapbox/map-design-team
@mapbox/static-apis
if this PR includes style spec API or visual changes- [ ] tagged@mapbox/gl-native
if this PR includes shader changes or needs a native port- [ ] add an entry inside this element for inclusion in themapbox-gl-js
changelog:<changelog></changelog>