Skip to content

Commit

Permalink
Hide zero contours
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Sep 12, 2024
1 parent 8ba929d commit 21cc770
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions styles/basemap.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,20 @@
"line-color": "#000000",
"line-opacity": ["case", ["get", "idx"], 0.2, 0.1],
"line-width": 0.5
}
},
"filter": ["!=", ["get", "ele"], 0]
},
{
"id": "contours-labels",
"type": "symbol",
"source": "contours",
"source-layer": "contours",
"minzoom": 12,
"filter": ["==", ["get", "idx"], true],
"filter": [
"all",
["==", ["get", "idx"], true],
["!=", ["get", "ele"], 0]
],
"layout": {
"text-field": "{ele} ft",
"text-font": ["Americana-Regular"],
Expand Down

0 comments on commit 21cc770

Please sign in to comment.