-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix #11516: unecessary optimization approach disabled border intersection calculation for complex polygons: when enumerating polygon rings, if previous rings were outside bookkeeped aabb would prevent checking if edge crosses tile border and 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. Fixes: #11516, #11041 * Enable flat-roof-over-border-of-different-zoom-zoomin render test There is occasional flakiness on rendering fill color (zoom 16 evaluation is not seen on drape but zoom 15) and fill color is made constant to prevent it. Co-authored-by: Aleksandar Stojiljković <aleksandar.stojijkovic@mapbox.com>
- Loading branch information
Showing
16 changed files
with
142 additions
and
48 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
Binary file added
BIN
+39.1 KB
...egration/render-tests/fill-extrusion-terrain/flat-roof-gl-js#11516/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions
85
test/integration/render-tests/fill-extrusion-terrain/flat-roof-gl-js#11516/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,85 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"description": "Verifies fix for bug https://github.com/mapbox/mapbox-gl-js/issues/11516", | ||
"test": { | ||
"height": 512, | ||
"width": 512, | ||
"operations": [ | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"sources": { | ||
"rgbterrain": { | ||
"type": "raster-dem", | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.terrain.512.png" | ||
], | ||
"maxzoom": 14, | ||
"tileSize": 512 | ||
}, | ||
"country-boundaries": { | ||
"type": "vector", | ||
"maxzoom": 2, | ||
"tiles": [ | ||
"local://tiles/mapbox.country-boundaries-v1/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"terrain": { | ||
"source": "rgbterrain", | ||
"exaggeration": ["interpolate",["linear"],["zoom"],0,50,11,1,12,0] | ||
}, | ||
"zoom": 2.18, | ||
"center": [ | ||
-100, | ||
19 | ||
], | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "lightblue" | ||
} | ||
}, | ||
{ | ||
"id": "country-boundaries", | ||
"type": "fill-extrusion", | ||
"paint": { | ||
"fill-extrusion-color": [ | ||
"interpolate", | ||
[ | ||
"linear" | ||
], | ||
[ | ||
"get", | ||
"color_group" | ||
], | ||
1, | ||
"hsl(0, 87%, 68%)", | ||
6, | ||
"hsl(43, 88%, 58%)" | ||
], | ||
"fill-extrusion-height": [ | ||
"interpolate", | ||
[ | ||
"linear" | ||
], | ||
[ | ||
"get", | ||
"color_group" | ||
], | ||
1, | ||
1000000, | ||
6, | ||
100000 | ||
], | ||
"fill-extrusion-opacity": 0.8 | ||
}, | ||
"source": "country-boundaries", | ||
"source-layer": "country_boundaries" | ||
} | ||
] | ||
} |
Binary file modified
BIN
+47.6 KB
(140%)
...l-extrusion-terrain/flat-roof-over-border-of-different-zoom-zoomin/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 modified
BIN
+51.4 KB
(140%)
...sts/fill-extrusion-terrain/flat-roof-over-border-of-different-zoom/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.