Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix: position label in front of billboard (#147)
Browse files Browse the repository at this point in the history
Co-authored-by: basel.issmail <[email protected]>
  • Loading branch information
issmail-basel and Basel-Issmail authored Dec 20, 2021
1 parent 9d6acc0 commit 81c5338
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Color, EntityCluster, HorizontalOrigin, VerticalOrigin } from "cesium";
import { Color, Cartesian3, EntityCluster, HorizontalOrigin, VerticalOrigin } from "cesium";
import React, { useEffect, useMemo } from "react";
import { CustomDataSource } from "resium";

Expand Down Expand Up @@ -82,6 +82,7 @@ const Cluster: React.FC<Props> = ({
clusterParam.label.fillColor = Color.fromCssColorString(
clusterLabelTypography.color ?? "#FFF",
);
clusterParam.label.eyeOffset = new Cartesian3(0, 0, -5);
clusterParam.billboard.show = true;
clusterParam.billboard.image = clusterImage;
clusterParam.billboard.height = clusterImageWidth;
Expand Down

0 comments on commit 81c5338

Please sign in to comment.