Skip to content

Commit

Permalink
chore: added Cesium debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Apr 26, 2024
1 parent 0ecccb7 commit 6d95a43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions map/client/mixins/globe/mixin.base-globe.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export const baseGlobe = {
terrainProviderViewModels: []
})
this.viewer = new Cesium.Viewer(domEl, viewerOptions)
// Debug mode ?
if (viewerOptions.debug) this.viewer.extend(Cesium.viewerCesiumInspectorMixin)
// Cesium always create a default provider
this.viewer.scene.imageryLayers.removeAll()
// Add defaults handler
Expand Down

0 comments on commit 6d95a43

Please sign in to comment.