We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f506dd6 commit 96cbedaCopy full SHA for 96cbeda
1 file changed
src/app.js
@@ -130,8 +130,9 @@ weapi.App = function(divid, opt_options) {
130
this.scene.skyAtmosphere = new Cesium.SkyAtmosphere();
131
}
132
if (options['sky']) {
133
- //TODO: solve resources
134
- var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : '') + 'SkyBox/';
+ var baseUrl = goog.isString(options['sky']) ?
+ options['sky'] : window['CESIUM_BASE_URL'];
135
+ var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : baseUrl) + 'SkyBox/';
136
this.scene.skyBox = new Cesium.SkyBox({
137
'sources': {
138
'positiveX' : skyBoxBaseUrl + 'px.jpg',
0 commit comments