-
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.
Render test with multiple fill extrusions and circle layers interleaved
Our combinations fill-extrusion render tests mostly combine fill extrusion with one other layer. This just serves for verifying it using more layers. It doesn't expose any particular issue - serves for verifying mapbox/mapbox-gl-native#15065
- Loading branch information
Showing
2 changed files
with
200 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+5.25 KB
...ntegration/render-tests/fill-extrusion-multiple/interleaved-layers/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
200 changes: 200 additions & 0 deletions
200
.../integration/render-tests/fill-extrusion-multiple/interleaved-layers/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,200 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256, | ||
"allowed": 0.0005 | ||
} | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"which": "a", | ||
"property": 10 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"which": "b", | ||
"property": 20 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-0.0002, | ||
0 | ||
], | ||
[ | ||
0, | ||
0.0002 | ||
], | ||
[ | ||
0.0002, | ||
0 | ||
], | ||
[ | ||
0, | ||
-0.0002 | ||
], | ||
[ | ||
-0.0002, | ||
0 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"which": "c", | ||
"property": 30 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-0.00008, | ||
-0.00008 | ||
], | ||
[ | ||
-0.00008, | ||
0.00008 | ||
], | ||
[ | ||
0.00008, | ||
0.00008 | ||
], | ||
[ | ||
0.00008, | ||
-0.00008 | ||
], | ||
[ | ||
-0.00008, | ||
-0.00008 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"pitch": 60, | ||
"zoom": 18, | ||
"layers": [ | ||
{ | ||
"id": "circle-translucent-a", | ||
"type": "circle", | ||
"source": "geojson", | ||
"filter": ["==", "which", "a"], | ||
"paint": { | ||
"circle-color": "pink" | ||
} | ||
}, | ||
{ | ||
"id": "circle-translucent-b-hidden", | ||
"type": "circle", | ||
"source": "geojson", | ||
"filter": ["==", "which", "b"], | ||
"paint": { | ||
"circle-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "a", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "a"], | ||
"paint": { | ||
"fill-extrusion-color": "red", | ||
"fill-extrusion-height": 10 | ||
} | ||
}, | ||
{ | ||
"id": "circle-translucent-b-hidden-black", | ||
"type": "circle", | ||
"source": "geojson", | ||
"filter": ["==", "which", "b"], | ||
"paint": { | ||
"circle-color": "black" | ||
} | ||
}, | ||
{ | ||
"id": "circle-translucent-b", | ||
"type": "circle", | ||
"source": "geojson", | ||
"filter": ["==", "which", "b"], | ||
"paint": { | ||
"circle-color": "cyan" | ||
} | ||
}, | ||
{ | ||
"id": "b", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "b"], | ||
"paint": { | ||
"fill-extrusion-color": "blue", | ||
"fill-extrusion-height": 20 | ||
} | ||
}, | ||
{ | ||
"id": "circle-translucent", | ||
"type": "circle", | ||
"source": "geojson", | ||
"filter": ["==", "which", "c"], | ||
"paint": { | ||
"circle-color": "green" | ||
} | ||
}, | ||
{ | ||
"id": "c", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "c"], | ||
"paint": { | ||
"fill-extrusion-color": "yellow", | ||
"fill-extrusion-height": 30 | ||
} | ||
} | ||
] | ||
} |