Skip to content

Commit

Permalink
feat: extrudedHeight for polygon on reearth/core (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Feb 22, 2023
1 parent 7bd7c58 commit 523d358
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/engines/Cesium/Feature/Polygon/index.tsx
Expand Up @@ -42,6 +42,7 @@ export default function Polygon({ id, isVisible, property, geometry, layer, feat
strokeWidth = 1,
heightReference: hr,
shadows,
extrudedHeight,
} = property ?? {};

const hierarchy = useCustomCompareMemo(
Expand Down Expand Up @@ -80,6 +81,7 @@ export default function Polygon({ id, isVisible, property, geometry, layer, feat
outlineWidth={strokeWidth}
heightReference={heightReference(hr)}
shadows={shadowMode(shadows)}
extrudedHeight={extrudedHeight}
distanceDisplayCondition={distanceDisplayCondition}
/>
</EntityExt>
Expand Down
3 changes: 3 additions & 0 deletions src/core/engines/Cesium/Feature/Resource/utils.ts
Expand Up @@ -239,6 +239,9 @@ export const attachStyle = (
name: "heightReference",
type: "heightReference",
},
extrudedHeight: {
name: "extrudedHeight",
},
});
}
});
Expand Down
1 change: 1 addition & 0 deletions src/core/mantle/types/appearance.ts
Expand Up @@ -83,6 +83,7 @@ export type PolygonAppearance = {
lineJoin?: CanvasLineJoin;
near?: number;
far?: number;
extrudedHeight?: number;
};

export type EllipsoidAppearance = {
Expand Down

0 comments on commit 523d358

Please sign in to comment.