Skip to content

Commit

Permalink
fix(web): core marker extrude check for coordinates height (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice committed Nov 24, 2023
1 parent b60713b commit 7fcaa22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -78,7 +78,7 @@ export default function Marker({ property, id, isVisible, geometry, layer, featu
}, [coordinates]);

const extrudePoints = useMemo(() => {
return extrude && coordinates && typeof coordinates[3] === "number"
return extrude && coordinates && typeof coordinates[2] === "number"
? [
Cartesian3.fromDegrees(coordinates[0], coordinates[1], coordinates[2]),
Cartesian3.fromDegrees(coordinates[0], coordinates[1], 0),
Expand Down
Expand Up @@ -73,7 +73,7 @@ export default function Marker({ property, id, isVisible, geometry, layer, featu
}, [coordinates]);

const extrudePoints = useMemo(() => {
return extrude && coordinates && typeof coordinates[3] === "number"
return extrude && coordinates && typeof coordinates[2] === "number"
? [
Cartesian3.fromDegrees(coordinates[0], coordinates[1], coordinates[2]),
Cartesian3.fromDegrees(coordinates[0], coordinates[1], 0),
Expand Down

0 comments on commit 7fcaa22

Please sign in to comment.