Skip to content

Commit

Permalink
show label only when zoom is big enough
Browse files Browse the repository at this point in the history
  • Loading branch information
hanbyul-here committed Dec 28, 2020
1 parent 902b825 commit feaef5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions static/scene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ global:
size: 9pt
fill: black
line-and-polygon-labels:
filter: { not: { $geometry: point } }
filter:
all:
- { not: { $geometry: point } }
- { $zoom: { min: 14 } }
draw:
text:
collide: global.collide
Expand Down Expand Up @@ -85,7 +88,7 @@ layers:
# draw:
# polygons:
# interactive: true
# data: { source: building }
# data: { source: building }
# draw:
# polygons:
# color: red
Expand Down

0 comments on commit feaef5c

Please sign in to comment.