Skip to content

Commit

Permalink
fix #329 changed cesium background color to white (#2078)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 authored and Tobia Di Pisa committed Aug 4, 2017
1 parent 4a7d966 commit 253c244
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/client/components/map/cesium/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ let CesiumMap = React.createClass({
this.forceUpdate();
},
componentWillReceiveProps(newProps) {

if (newProps.mousePointer !== this.props.mousePointer) {
this.setMousePointer(newProps.mousePointer);
}
Expand Down Expand Up @@ -144,6 +145,9 @@ let CesiumMap = React.createClass({
},
render() {
const map = this.map;
if (this.map) {
this.map.scene.globe.baseColor = Cesium.Color.WHITE;
}
const mapProj = this.props.projection;
const children = map ? React.Children.map(this.props.children, child => {
return child ? React.cloneElement(child, {map: map, projection: mapProj}) : null;
Expand Down

0 comments on commit 253c244

Please sign in to comment.