Skip to content

Commit

Permalink
chore: added baseColor/undergroundColor in globe configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Jun 11, 2024
1 parent 35ce268 commit 5a25137
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions map/client/mixins/globe/mixin.base-globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ export const baseGlobe = {
this.viewer = new Cesium.Viewer(domEl, viewerOptions)
const backgroundColor = _.get(viewerOptions, 'backgroundColor')
this.viewer.scene.backgroundColor = (backgroundColor ? createCesiumObject('Color', ...backgroundColor) : Cesium.Color.BLACK)
if (this.viewer.scene.globe) {
const baseColor = _.get(viewerOptions, 'baseColor')
this.viewer.scene.globe.baseColor = (baseColor ? createCesiumObject('Color', ...baseColor) : Cesium.Color.BLACK)
const undergroundColor = _.get(viewerOptions, 'undergroundColor')
this.viewer.scene.globe.undergroundColor = (undergroundColor ? createCesiumObject('Color', ...undergroundColor) : Cesium.Color.BLACK)
}
// Debug mode ?
if (viewerOptions.debug) this.viewer.extend(Cesium.viewerCesiumInspectorMixin)
// Cesium always create a default provider when a globe is used
Expand Down

0 comments on commit 5a25137

Please sign in to comment.