add test for parsing enum, bool, string functions.

This commit is contained in:
Ansis Brammanis
2015-02-06 10:11:27 -08:00
parent 5eb08baf14
commit 177f441cc9
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{
"default": {
"log": [
]
}
}

View File

@@ -0,0 +1,43 @@
{
"version": 6,
"sources": {
"mapbox": {
"type": "vector",
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
"maxzoom": 14
}
},
"layers": [{
"id": "waterway_river_canal",
"type": "line",
"source": "mapbox",
"source-layer": "waterway",
"filter": ["in", "type", "river", "canal"],
"layout": {
"line-cap": {
"stops": [[0, "round"], [10, "round"]]
}
},
"paint": {
"line-translate-anchor": {
"stops": [[0, "map"], [10, "viewport"]]
}
}
},
{
"id": "label",
"type": "symbol",
"source": "mapbox",
"source-layer": "waterway",
"layout": {
"text-font": {
"stops": [[0, "Open Sans Regular"]]
},
"text-keep-upright": {
"stops": [[0, false], [10, true]]
}
},
"paint": {
}
}]
}