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

The Graphics component using resium in version 1.17.3 has no effect, but 1.17.2 does #656

Open
XiaoM-dev opened this issue Apr 16, 2024 · 1 comment

Comments

@XiaoM-dev
Copy link

When i try to use BoxGraphics or other Graphics components, it didn't work。But after I returned the version of resium to 1.17.2, the display worked fine。

import {
  Viewer,
  Entity,
  BoxGraphics
} from "resium";
import { Cartesian3, Color } from "cesium";

const App: React.FC = () => {
  return (
    <Viewer
      full
      animation={false}
      creditDisplay={undefined}
      timeline={false}
      fullscreenButton={false}
      creditContainer={document.createElement("div")}
    >
      <Entity
        name="PointGraphics"
        description="PointGraphics!!"
        position={Cartesian3.fromDegrees(-74.0707383, 60.7117244, 100)}
      >
        <BoxGraphics material={Color.RED} dimensions={new Cartesian3(400000.0, 300000.0, 500000.0)} />
      </Entity>
    </Viewer>
  );
};

export default App;

I'm using:
"cesium": "^1.116.0",
"resium": "1.17.3",
"vite": "^5.2.0",
"vite-plugin-cesium": "^1.2.22"

@phoenix850508
Copy link

I have the exact same problem here, it works fine using version 1.17.2, but many components are not showing when using 1.17.3

My specs are:
"cesium": "^1.116.0",
"next": "14.2.1",
"react": "^18",
"react-dom": "^18",
"resium": "^1.17.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants