Skip to content

Commit

Permalink
Render test with multiple fill extrusions and circle layers interleaved
Browse files Browse the repository at this point in the history
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
astojilj committed Jul 19, 2019
1 parent 0d70c37 commit 602fd7d
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
}
}
]
}

0 comments on commit 602fd7d

Please sign in to comment.