Skip to content

Commit

Permalink
keep more road labels at high zooms
Browse files Browse the repository at this point in the history
  • Loading branch information
nvkelso authored and peitilisc committed Feb 12, 2022
1 parent c534cc3 commit 2f9910c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions queries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2084,12 +2084,22 @@ post_process:
params:
source_layer: roads
start_zoom: 8
end_zoom: 17
end_zoom: 15
# pixels (256px nominal) to require per letter in the name. if lines are shorter than this,
# the name gets dropped. name pairs (e.g: :left and :right) get dropped if either are longer
# than pixels_per_letter. larger values mean fewer lines are eligible for labelling.
# the name gets dropped. larger values mean fewer lines are eligible for labelling.
pixels_per_letter: 11

# drop labels on roads which are too short to render
# but with more flexibility for range of style text sizes
- fn: vectordatasource.transform.drop_names_on_short_boundaries
params:
source_layer: roads
start_zoom: 15
end_zoom: 17
# pixels (256px nominal) to require per letter in the name. if lines are shorter than this,
# the name gets dropped. larger values mean fewer lines are eligible for labelling.
pixels_per_letter: 8

# since we drop names in the previous step, we would like merge it again
- fn: vectordatasource.transform.merge_line_features
params:
Expand Down

0 comments on commit 2f9910c

Please sign in to comment.