Skip to content

Commit

Permalink
Eliminate fill-extrude-* properties in favor of fill-extrusion type (#…
Browse files Browse the repository at this point in the history
…155)

* 🙅 fill-extrude-*; 👉 fill-extrusion type

* Update fill-extrusion tests after changing units to meters

* Make fill-extrusion-translate-anchor tests consistent + use more normalized numbers
  • Loading branch information
Lauren Budorick authored Nov 2, 2016
1 parent 91def21 commit 232b9e4
Show file tree
Hide file tree
Showing 94 changed files with 149 additions and 181 deletions.
Binary file removed render-tests/extrude-fill-color/default/expected.png
Binary file not shown.
Binary file not shown.
Binary file removed render-tests/extrude-fill-color/literal/expected.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed render-tests/extrude-fill-pattern/@2x/expected.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
92 changes: 0 additions & 92 deletions render-tests/extrude-fill-translate-anchor/map/style.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed render-tests/fill-extrude-base/default/expected.png
Binary file not shown.
Binary file removed render-tests/fill-extrude-base/function/expected.png
Binary file not shown.
Binary file removed render-tests/fill-extrude-base/literal/expected.png
Binary file not shown.
Binary file removed render-tests/fill-extrude-base/negative/expected.png
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 30
"fill-extrusion-height": 30
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 40,
"fill-extrude-base": {
"fill-extrusion-height": 40,
"fill-extrusion-base": {
"stops": [[17,0],[19,30]],
"type": "exponential"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 40,
"fill-extrude-base": 10
"fill-extrusion-height": 40,
"fill-extrusion-base": 10
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 40,
"fill-extrude-base": {
"fill-extrusion-height": 40,
"fill-extrusion-base": {
"type": "identity",
"property": "property"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 40,
"fill-extrude-base": {
"fill-extrusion-height": 40,
"fill-extrusion-base": {
"stops": [[0,0],[100,100]],
"type": "exponential",
"property": "property"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 100,
"fill-extrude-base": {
"fill-extrusion-height": 100,
"fill-extrusion-base": {
"stops": [
[{
"zoom": 17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10
"fill-extrusion-height": 10
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-color": {
"fill-extrusion-height": 10,
"fill-extrusion-color": {
"stops": [
[17, "blue"],
[19, "red"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-color": "blue"
"fill-extrusion-height": 10,
"fill-extrusion-color": "blue"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-color": "rgba(100,100,100,0.2)"
"fill-extrusion-height": 10,
"fill-extrusion-color": "rgba(100,100,100,0.2)"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-color": {
"fill-extrusion-height": 10,
"fill-extrusion-color": {
"property": "property",
"stops": [
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-color": {
"fill-extrusion-height": 10,
"fill-extrusion-color": {
"property": "property",
"stops": [
[{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": {
"fill-extrusion-height": {
"stops": [
[17, 10],
[19, 100]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": {
"fill-extrusion-height": {
"type": "identity",
"property": "property"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": {
"fill-extrusion-height": {
"stops": [
[0, 0],
[100, 100]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": {
"fill-extrusion-height": {
"stops": [
[{
"zoom": 17.99,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10
"fill-extrusion-height": 10
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-opacity": {
"fill-extrusion-height": 10,
"fill-extrusion-opacity": {
"stops": [[18.9, 0.1],[19.1, 1]],
"type": "exponential"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
},
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-extrude-height": 10,
"fill-opacity": 0.75
"fill-extrusion-height": 10,
"fill-extrusion-opacity": 0.75
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"layers": [
{
"id": "extrusion",
"type": "fill",
"type": "fill-extrusion",
"source": "geojson",
"paint": {
"fill-pattern": "generic_icon",
"fill-extrude-height": 10
"fill-extrusion-pattern": "generic_icon",
"fill-extrusion-height": 10
}
}
]
Expand Down
Loading

0 comments on commit 232b9e4

Please sign in to comment.