This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios, macos] Add style's text localization tests.
- Loading branch information
1 parent
cb4dfd9
commit a68aa78
Showing
5 changed files
with
103 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"version": 8, | ||
"sources": { | ||
"composite": { | ||
"url": "mapbox://mapbox.mapbox-streets-v8", | ||
"type": "vector" | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "country-label", | ||
"type": "symbol", | ||
"source": "composite", | ||
"source-layer": "place_label", | ||
"minzoom": 3, | ||
"maxzoom": 8, | ||
"filter": ["==", ["get", "type"], "country"], | ||
"layout": { | ||
"text-field": ["coalesce", ["get", "name_en"], ["get", "name"]], | ||
"text-max-width": [ | ||
"interpolate", | ||
["linear"], | ||
["zoom"], | ||
0, | ||
5, | ||
3, | ||
6 | ||
], | ||
"text-font": [ | ||
"step", | ||
["zoom"], | ||
["literal", ["Roboto Medium", "Arial Unicode MS Regular"]], | ||
4, | ||
["literal", ["Roboto Bold", "Arial Unicode MS Bold"]] | ||
], | ||
"text-size": [ | ||
"interpolate", | ||
["linear"], | ||
["zoom"], | ||
1, | ||
["step", ["get", "symbolrank"], 12, 3, 10, 5, 9], | ||
9, | ||
["step", ["get", "symbolrank"], 35, 3, 27, 5, 22] | ||
] | ||
}, | ||
"paint": { | ||
"text-halo-width": 1.5, | ||
"text-halo-color": "hsla(0, 0%, 100%, 0.95)", | ||
"text-color": "hsl(0, 0%, 0%)" | ||
} | ||
} | ||
] | ||
} |
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 +1 @@ | ||
{"version":8,"sources":{},"layers":[]} | ||
{"version":8,"sources":{},"layers":[]} |
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