Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set the default colorBlendMode value for 3D tiles to "highlight" #59

Merged
merged 8 commits into from
Nov 29, 2024
4 changes: 2 additions & 2 deletions src/engines/Cesium/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,15 +546,15 @@ export const colorBlendMode = (colorBlendMode?: "highlight" | "replace" | "mix"
)[colorBlendMode || ""];

export const colorBlendModeFor3DTile = (
colorBlendMode?: "highlight" | "replace" | "mix" | "default",
colorBlendMode: "highlight" | "replace" | "mix" = "highlight",
) =>
(
({
highlight: Cesium3DTileColorBlendMode.HIGHLIGHT,
replace: Cesium3DTileColorBlendMode.REPLACE,
mix: Cesium3DTileColorBlendMode.MIX,
}) as { [key in string]?: Cesium3DTileColorBlendMode }
)[colorBlendMode || ""];
)[colorBlendMode]

export const heightReference = (
heightReference?: "none" | "clamp" | "relative",
Expand Down
Loading