-
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.
WIP: generalize expression/calculation-dependent properties
- Loading branch information
Lauren Budorick
committed
Mar 26, 2018
1 parent
375c6d0
commit 30dc066
Showing
15 changed files
with
115 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,4 +67,4 @@ | |
"left": -32.5, | ||
"right": 32.5, | ||
"writingMode": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -67,4 +67,4 @@ | |
"left": -32.5, | ||
"right": 32.5, | ||
"writingMode": 1 | ||
} | ||
} |
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 |
---|---|---|
|
@@ -67,4 +67,4 @@ | |
"left": -32.5, | ||
"right": 32.5, | ||
"writingMode": 1 | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
test/unit/style-spec/fixture/expression-dependency.input.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,64 @@ | ||
{ | ||
"version": 8, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"lineMetrics": true, | ||
"data": {} | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "line-gradient-good", | ||
"type": "line", | ||
"source": "geojson", | ||
"paint": { | ||
"line-gradient": [ | ||
"interpolate", | ||
["linear"], | ||
["line-progress"], | ||
0, "#000000" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "line-gradient-bad", | ||
"type": "line", | ||
"source": "geojson", | ||
"paint": { | ||
"line-gradient": [ | ||
"interpolate", | ||
["linear"], | ||
["wrong-input"], | ||
0, "#000000" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "heatmap-density-good", | ||
"type": "heatmap", | ||
"source": "geojson", | ||
"paint": { | ||
"heatmap-color": [ | ||
"interpolate", | ||
["linear"], | ||
["heatmap-density"], | ||
0, "#000000" | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "heatmap-density-bad", | ||
"type": "heatmap", | ||
"source": "geojson", | ||
"paint": { | ||
"heatmap-color": [ | ||
"interpolate", | ||
["linear"], | ||
["wrong-input"], | ||
0, "#000000" | ||
] | ||
} | ||
} | ||
] | ||
} |
18 changes: 18 additions & 0 deletions
18
test/unit/style-spec/fixture/expression-dependency.output.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,18 @@ | ||
[ | ||
{ | ||
"message": "sources.geojson: unknown property \"lineMetrics\"", | ||
"line": 6 | ||
}, | ||
{ | ||
"message": "layers[0].paint.line-gradient: unknown property \"line-gradient\"", | ||
"line": 16 | ||
}, | ||
{ | ||
"message": "layers[1].paint.line-gradient: unknown property \"line-gradient\"", | ||
"line": 29 | ||
}, | ||
{ | ||
"message": "layers[3].paint.heatmap-color[2][0]: Unknown expression \"wrong-input\". If you wanted a literal array, use [\"literal\", [...]].", | ||
"line": 55 | ||
} | ||
] |
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