Font stacks as arrays

This commit is contained in:
Tom MacWright
2015-03-12 16:44:33 -04:00
committed by John Firebaugh
parent 58d6b84b2b
commit 6df50dba45
3 changed files with 24 additions and 18 deletions

View File

@@ -20,7 +20,7 @@
"source": "vectorsource",
"source-layer": "road_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",
"text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
"text-field": "{name_en}"
}
}, {
@@ -29,7 +29,7 @@
"source": "vectorsource",
"source-layer": "poi_label",
"layout": {
"text-font": "Open Sans Regular, Arial Unicode MS Regular",
"text-font": ["Open Sans Regular", "Arial Unicode MS Regular"],
"icon-image": "{maki}_icon"
}
}]

View File

@@ -31,7 +31,7 @@
"source-layer": "waterway",
"layout": {
"text-font": {
"stops": [[0, "Open Sans Regular"]]
"stops": [[0, ["Open Sans Regular"]]]
},
"text-keep-upright": {
"stops": [[0, false], [10, true]]