-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slightly rework depth clearing to fix all extrusion tests not renderi…
…ng + fix texture deletion on resize
- Loading branch information
Lauren Budorick
committed
Aug 4, 2017
1 parent
c99b299
commit b155913
Showing
3 changed files
with
163 additions
and
7 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
+3.27 KB
test/integration/render-tests/fill-extrusion-multiple/multiple/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
154 changes: 154 additions & 0 deletions
154
test/integration/render-tests/fill-extrusion-multiple/multiple/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,154 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"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.0001, | ||
-0.0001 | ||
], | ||
[ | ||
-0.0001, | ||
0.0001 | ||
], | ||
[ | ||
0.0001, | ||
0.0001 | ||
], | ||
[ | ||
0.0001, | ||
-0.0001 | ||
], | ||
[ | ||
-0.0001, | ||
-0.0001 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"pitch": 60, | ||
"zoom": 18, | ||
"layers": [ | ||
{ | ||
"id": "a", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "a"], | ||
"paint": { | ||
"fill-extrusion-color": "red", | ||
"fill-extrusion-height": 10 | ||
} | ||
}, | ||
{ | ||
"id": "b", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "b"], | ||
"paint": { | ||
"fill-extrusion-color": "blue", | ||
"fill-extrusion-height": 20 | ||
} | ||
}, | ||
{ | ||
"id": "c", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"filter": ["==", "which", "c"], | ||
"paint": { | ||
"fill-extrusion-color": "yellow", | ||
"fill-extrusion-height": 30 | ||
} | ||
} | ||
] | ||
} |