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

How can I adapt CESIUM_BASE_URL in api.js ? #8

Open
hededesedede opened this issue Oct 4, 2019 · 1 comment
Open

How can I adapt CESIUM_BASE_URL in api.js ? #8

hededesedede opened this issue Oct 4, 2019 · 1 comment

Comments

@hededesedede
Copy link

I want to use WEbglearth2 as offline.
I did everything and it's working well, except loading tiles. there is no world in the web browser, when I open.

and I understood that I should change CESIUM_BASE_URL in api.js.
CESIUM_BASE_URL = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//www.webglearth.com/v2/';

https://raw.githubusercontent.com/webglearth/webglearth2-offline/gh-pages/v2/api.js

How can I change it, and make completely offline map?

@ColonelBuendia
Copy link

old:
// CESIUM_BASE_URL = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//www.webglearth.com/v2/';
new:
CESIUM_BASE_URL = ('https:' == document.location.protocol ? 'https:' : 'http:') + '/v2/';

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