webglearth / webglearth2-offline

Example of offline use of WebGL Earth 2 with tiles rendered by MapTiler
https://github.com/webglearth/webglearth2-offline/archive/gh-pages.zip
106 stars 44 forks source link

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

Open hededesedede opened 5 years ago

hededesedede commented 5 years ago

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_URLin 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 commented 4 years ago

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/';