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

Globe is not visible #374

Closed
egeakin opened this issue May 15, 2020 · 2 comments
Closed

Globe is not visible #374

egeakin opened this issue May 15, 2020 · 2 comments

Comments

@egeakin
Copy link

egeakin commented May 15, 2020

Hello,

My application was running correctly and the globe was visible. But after a while, the globe is disappeared. When I looked at the same issue on the internet, I saw that the default access token should be changed. I both tried;

        Cesium.Ion.defaultAccessToken = "My_Token"
        Cesium.BingMapsApi.defaultKey = "My_Token"

But the errors that I got were;

        "TypeError: Cannot read property 'Ion' of undefined.
        "TypeError: Cannot read property 'BingMapsApi' of undefined.

The screenshot of index.js is at the below. What should I do to solve this problem?

Thank you

Screen Shot 2020-05-15 at 18 46 51

Screen Shot 2020-05-15 at 18 44 50

@egeakin egeakin closed this as completed May 16, 2020
@guoqiaolongfei123
Copy link

Hi:
Have you solved this problem? I am experiencing the same issue. Thank you.

@egeakin
Copy link
Author

egeakin commented Jun 3, 2020

Hello,
You must set Ion token within the file that you use Viewer component such as:
Ion.defaultAccessToken = "YOUR_TOKEN"

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