Skip to content

Commit

Permalink
Fix #154 by coalescing the possibly missing building height value tha…
Browse files Browse the repository at this point in the history
…t gets fed to fill-extrusion-height
  • Loading branch information
Benjamin Clark committed Aug 26, 2024
1 parent ad8d2f2 commit 869666f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions site/src/ThemeTypeLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ const ThemeTypeLayer = ({
"all",
["==", ["geometry-type"], "Polygon"],
["!=", ["get", "has_parts"], true],
["has", "height"]
]} // prevent z-fighting
id={`${theme}_${type}_fill-extrusion`}
type="fill-extrusion"
Expand All @@ -183,7 +182,7 @@ const ThemeTypeLayer = ({
: 0.15
: 0.15,
"fill-extrusion-base": ["coalesce",["get", "min_height"],0],
"fill-extrusion-height": ["get", "height"],
"fill-extrusion-height": ["coalesce",["get", "height"],0],
}}
layout={{ visibility: visible ? "visible" : "none" }}
{...(minzoom ? { minzoom } : {})}
Expand Down

0 comments on commit 869666f

Please sign in to comment.