-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Nothing was returned from render when trying to use any graphics wrapped in an Entity #438
Comments
What Cesium and Resium's version are you using? |
hi rot @rot1024, I'm using: |
I tried to update the example project in the Resium repository as following:
import React from "react";
import { Cartesian3, Color } from "cesium";
import { Viewer, Entity, BoxGraphics } from "resium";
function App() {
return (
<Viewer full>
<Entity
name="BoxGraphics"
description="BoxGraphics!!"
position={Cartesian3.fromDegrees(0, 0, 0)}
>
<BoxGraphics
material={Color.RED}
dimensions={new Cartesian3(400000.0, 300000.0, 500000.0)}
/>
</Entity>
</Viewer>
);
}
export default App; And then it works well: So I guess that the issue is due to your environment. If you use yarn, try to delete yarn.lock and reinstall modules. |
Also, I tried it at https://github.com/rot1024/create-react-app-cesium-example and I found the issue. So I guess the issue occurs only in the CRA environment. I am investigating it... |
I found there is a bug in Resium. I will fix it soon and release a new version. Thank you! |
v1.13.1 has been released! Try it! |
Wow, thank you! Very much appreciated :) |
When I pass "point" to Entity, I can get a circular point rendering on the globe as expected, but as soon as I wrap any Graphic component with Entity, the app crashes with this error:
All the code is on the same level, and there isn't any custom data.
Has anyone encountered this bug before, and can refer to me to any resources that might be of help? Thanks
The text was updated successfully, but these errors were encountered: