Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit e2e8c3f

Browse files
matkonieczwestnordost
authored andcommitted
text gets larger as one zooms in and support for global text resize
transform styling from my SC PR using superior coding by @ENT8R
1 parent f6f251c commit e2e8c3f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

global.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@ global:
55
text_stroke: { color: global.text_stroke_color, width: 2.5px }
66
text_places_stroke: { color: global.text_stroke_color, width: 2.5px }
77
text_fill_color: '#124'
8-
text_size: 12px
8+
text_size_scaling: 1 # intended to be overwritten by StreetComplete
9+
text_size: |
10+
function() {
11+
var size = 13;
12+
if ($zoom >= 18 && $zoom < 19) {
13+
size = 15;
14+
} else if ($zoom >= 19) {
15+
size = 17;
16+
}
17+
return (size * global.text_size_scaling) + "px";
18+
}
919
1020
# The following colors are in most cases overwritten
1121
# ones that are used are defined in streetcomplete-light-style.yaml

0 commit comments

Comments
 (0)