Skip to content

Commit

Permalink
text gets larger as one zooms in and support for global text resize
Browse files Browse the repository at this point in the history
transform styling from my SC PR using superior coding by @ENT8R
  • Loading branch information
matkoniecz authored and westnordost committed Jun 2, 2020
1 parent f6f251c commit e2e8c3f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion global.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ global:
text_stroke: { color: global.text_stroke_color, width: 2.5px }
text_places_stroke: { color: global.text_stroke_color, width: 2.5px }
text_fill_color: '#124'
text_size: 12px
text_size_scaling: 1 # intended to be overwritten by StreetComplete
text_size: |
function() {
var size = 13;
if ($zoom >= 18 && $zoom < 19) {
size = 15;
} else if ($zoom >= 19) {
size = 17;
}
return (size * global.text_size_scaling) + "px";
}
# The following colors are in most cases overwritten
# ones that are used are defined in streetcomplete-light-style.yaml
Expand Down

0 comments on commit e2e8c3f

Please sign in to comment.