-
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.
Add fill-extrusion-vertical-gradient property (#6841)
- Loading branch information
1 parent
beeb173
commit 6ad95cb
Showing
11 changed files
with
250 additions
and
10 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
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
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
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
+1.75 KB
.../integration/render-tests/fill-extrusion-vertical-gradient/default/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions
101
test/integration/render-tests/fill-extrusion-vertical-gradient/default/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,101 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"light": { | ||
"intensity": 1 | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"property": 0 | ||
}, | ||
"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": { | ||
"property": 20 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"pitch": 60, | ||
"zoom": 18, | ||
"layers": [ | ||
{ | ||
"id": "extrusion", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"paint": { | ||
"fill-extrusion-height": ["+", ["get", "property"], 18], | ||
"fill-extrusion-base": ["get", "property"], | ||
"fill-extrusion-color": "#999" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+1.71 KB
test/integration/render-tests/fill-extrusion-vertical-gradient/false/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
102 changes: 102 additions & 0 deletions
102
test/integration/render-tests/fill-extrusion-vertical-gradient/false/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,102 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256 | ||
} | ||
}, | ||
"light": { | ||
"intensity": 1 | ||
}, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"property": 0 | ||
}, | ||
"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": { | ||
"property": 20 | ||
}, | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
0.0003 | ||
], | ||
[ | ||
0.0003, | ||
-0.0003 | ||
], | ||
[ | ||
-0.0003, | ||
-0.0003 | ||
] | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"pitch": 60, | ||
"zoom": 18, | ||
"layers": [ | ||
{ | ||
"id": "extrusion", | ||
"type": "fill-extrusion", | ||
"source": "geojson", | ||
"paint": { | ||
"fill-extrusion-height": ["+", ["get", "property"], 18], | ||
"fill-extrusion-base": ["get", "property"], | ||
"fill-extrusion-color": "#999", | ||
"fill-extrusion-vertical-gradient": false | ||
} | ||
} | ||
] | ||
} |