Font stacks as arrays
This commit is contained in:
committed by
John Firebaugh
parent
58d6b84b2b
commit
6df50dba45
4
test/fixtures/resources/style.json
vendored
4
test/fixtures/resources/style.json
vendored
@@ -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"
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user