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

Resolving 'Cesium is not Defined' Error in OL 6 with OLCS Using TypeScript #1181

Open
LucasMali opened this issue Mar 21, 2024 · 1 comment

Comments

@LucasMali
Copy link

Hello there,

I am experiencing an issue with OL 6 (the latest version) with OLCS. I am using TypeScript and following the imports as suggested in the README. However, I received an error message saying, "Cesium is not defined." I have searched for a solution and found a thread on this topic, but it didn't provide any helpful solution to my problem. I follow the documentation accurately, so I am trying to figure out what I am doing wrong. Any assistance would be greatly appreciated.

@XiaofengZeng
Copy link

@LucasMali Hi, Lucas.
As of today, the latest version of Openlayers is v9.1.0.
and for your problem, you need to make sure that the Cesium dependency library is mounted on the window object. It will be get by window.Cesium.

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