-
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.
fix opacity interpolation for composition expressions (#8818)
fix #8817 The interpolation factor could be outside of the range 0..1 which could result in rendering errors.
- Loading branch information
Showing
4 changed files
with
74 additions
and
3 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
Binary file added
BIN
+177 Bytes
test/integration/render-tests/regressions/mapbox-gl-js#8817/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 68 additions & 0 deletions
68
test/integration/render-tests/regressions/mapbox-gl-js#8817/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,68 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64, | ||
"comment": "The `pauseSource` prevents new tiles from loading and forces the map to use tiles outside of their ideal zoom range.", | ||
"operations": [ | ||
["pauseSource", "geojson"], | ||
["setZoom", 2], | ||
["wait"] | ||
] | ||
} | ||
}, | ||
"zoom": 0, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-10, | ||
-10 | ||
], | ||
[ | ||
-10, | ||
10 | ||
], | ||
[ | ||
10, | ||
10 | ||
], | ||
[ | ||
10, | ||
-10 | ||
], | ||
[ | ||
-10, | ||
-10 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "fill", | ||
"type": "fill", | ||
"source": "geojson", | ||
"paint": { | ||
"fill-antialias": false, | ||
"fill-color": "green", | ||
"fill-opacity": [ | ||
"interpolate", | ||
["linear"], | ||
["zoom"], | ||
0.5, | ||
0, | ||
1, | ||
["match", ["get", "fakeproptotriggercompositeexpression"], "nope", 1, 1] | ||
] | ||
} | ||
} | ||
] | ||
} |
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