-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve hillshade layers not using raster-dem sources error message (#…
…353) * Improve hillshade error message * Add changelog entry
- Loading branch information
Showing
4 changed files
with
60 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,90 @@ | ||
[ | ||
{ | ||
"message": "layers[0]: either \"type\" or \"ref\" is required", | ||
"line": 23 | ||
"line": 27 | ||
}, | ||
{ | ||
"message": "layers[1]: missing required property \"id\"", | ||
"line": 28 | ||
"line": 32 | ||
}, | ||
{ | ||
"message": "layers[3]: \"type\" is prohibited for ref layers", | ||
"line": 42 | ||
"line": 46 | ||
}, | ||
{ | ||
"message": "layers[3]: \"source\" is prohibited for ref layers", | ||
"line": 43 | ||
"line": 47 | ||
}, | ||
{ | ||
"message": "layers[3]: \"source-layer\" is prohibited for ref layers", | ||
"line": 44 | ||
"line": 48 | ||
}, | ||
{ | ||
"message": "layers[3]: \"filter\" is prohibited for ref layers", | ||
"line": 45 | ||
"line": 49 | ||
}, | ||
{ | ||
"message": "layers[3]: \"layout\" is prohibited for ref layers", | ||
"line": 46 | ||
"line": 50 | ||
}, | ||
{ | ||
"message": "layers[4]: ref layer \"not-found\" not found", | ||
"line": 50 | ||
"line": 54 | ||
}, | ||
{ | ||
"message": "layers[5]: ref cannot reference another ref layer", | ||
"line": 54 | ||
"line": 58 | ||
}, | ||
{ | ||
"message": "layers[6]: missing required property \"source\"", | ||
"line": 56 | ||
"line": 60 | ||
}, | ||
{ | ||
"message": "layers[7]: source \"not-found\" not found", | ||
"line": 63 | ||
"line": 67 | ||
}, | ||
{ | ||
"message": "layers[8]: layer \"vector-raster-mismatch\" requires a vector source", | ||
"line": 68 | ||
"line": 72 | ||
}, | ||
{ | ||
"message": "layers[9]: layer \"raster-vector-mismatch\" requires a raster source", | ||
"line": 73 | ||
"line": 77 | ||
}, | ||
{ | ||
"message": "layers[11]: duplicate layer id \"duplicate\", previously used at line 77", | ||
"message": "layers[10]: layer \"raster-hillshade-mismatch\" requires a raster-dem source", | ||
"line": 83 | ||
}, | ||
{ | ||
"message": "layers[12].type: expected one of [fill, line, symbol, circle, heatmap, fill-extrusion, raster, hillshade, background], \"invalid\" found", | ||
"line": 90 | ||
"message": "layers[11]: layer \"vector-hillshade-mismatch\" requires a raster-dem source", | ||
"line": 89 | ||
}, | ||
{ | ||
"message": "layers[13]: layer \"missing-source-layer\" must specify a \"source-layer\"", | ||
"line": 100 | ||
"message": "layers[12]: raster-dem source can only be used with layer type 'hillshade'.", | ||
"line": 95 | ||
}, | ||
{ | ||
"message": "layers[15]: layer \"line-gradient-bad\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.", | ||
"message": "layers[14]: duplicate layer id \"duplicate\", previously used at line 99", | ||
"line": 105 | ||
}, | ||
{ | ||
"message": "layers[15].type: expected one of [fill, line, symbol, circle, heatmap, fill-extrusion, raster, hillshade, background], \"invalid\" found", | ||
"line": 112 | ||
}, | ||
{ | ||
"message": "layers[16]: layer \"line-gradient-missing-lineMetrics\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.", | ||
"line": 126 | ||
"message": "layers[16]: layer \"missing-source-layer\" must specify a \"source-layer\"", | ||
"line": 122 | ||
}, | ||
{ | ||
"message": "layers[18]: layer \"line-gradient-bad\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.", | ||
"line": 134 | ||
}, | ||
{ | ||
"message": "layers[19]: layer \"line-gradient-missing-lineMetrics\" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.", | ||
"line": 148 | ||
}, | ||
{ | ||
"message": "layers[18].type: expected one of [fill, line, symbol, circle, heatmap, fill-extrusion, raster, hillshade, background], \"custom\" found", | ||
"line": 156 | ||
"message": "layers[21].type: expected one of [fill, line, symbol, circle, heatmap, fill-extrusion, raster, hillshade, background], \"custom\" found", | ||
"line": 178 | ||
} | ||
] |