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 map does not appear in version 1.17.3 #660

Open
dittrand opened this issue May 7, 2024 · 1 comment
Open

The map does not appear in version 1.17.3 #660

dittrand opened this issue May 7, 2024 · 1 comment

Comments

@dittrand
Copy link

dittrand commented May 7, 2024

I'm trying to create a project in React that when the "Open Map" button is clicked, the map appears,
In version 1.17.2 the map appears twice,
In version 1.17.3 the map no longer appears,

My component is:
import { useState } from 'react'
import { Viewer } from 'resium'

export const CesiumMap = () => {
const [open, setOpen] = useState(false);
return (
<>
<button onClick={() => setOpen(!open)}> Open Map
{open && }
</>
)
}

package.json:
"dependencies": {
"@craco/craco": "^7.1.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.97",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"cesium": "1.116.0",
"craco-cesium": "^1.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"resium": "1.17.2",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"test": "craco test",
"eject": "react-scripts eject"
},

Waiting for an answer

@Kai-W
Copy link

Kai-W commented May 16, 2024

i had a similar problem and made an example https://codesandbox.io/p/devbox/funny-mahavira-tryfy9

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