forked from mapbox/mapbox-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix symbol rendering under opaque fill layers (mapbox#7612)
- Loading branch information
1 parent
377b5e2
commit b693a69
Showing
4 changed files
with
81 additions
and
6 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
Binary file added
BIN
+207 Bytes
...ntegration/render-tests/fill-opacity/opaque-fill-over-symbol-layer/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions
78
.../integration/render-tests/fill-opacity/opaque-fill-over-symbol-layer/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,78 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 64, | ||
"height": 64 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-20, | ||
-20 | ||
], | ||
[ | ||
-20, | ||
20 | ||
], | ||
[ | ||
20, | ||
20 | ||
], | ||
[ | ||
20, | ||
-20 | ||
], | ||
[ | ||
-20, | ||
-20 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
"icon-source": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [ | ||
0, | ||
0 | ||
] | ||
}, | ||
"properties": { | ||
"icon": "building" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"sprite": "local://sprites/sprite", | ||
"layers": [ | ||
{ | ||
"id": "icons", | ||
"type": "symbol", | ||
"source": "icon-source", | ||
"layout": { | ||
"icon-image": "{icon}-12" | ||
} | ||
}, | ||
{ | ||
"id": "fill", | ||
"type": "fill", | ||
"source": "geojson" | ||
} | ||
] | ||
} |