From 253c2444b195ba88ace7a8156f71c4c3cb58bbfd Mon Sep 17 00:00:00 2001 From: Matteo V Date: Fri, 4 Aug 2017 12:07:42 +0200 Subject: [PATCH] fix #329 changed cesium background color to white (#2078) --- web/client/components/map/cesium/Map.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/client/components/map/cesium/Map.jsx b/web/client/components/map/cesium/Map.jsx index d68aa919f1..98d517578c 100644 --- a/web/client/components/map/cesium/Map.jsx +++ b/web/client/components/map/cesium/Map.jsx @@ -91,6 +91,7 @@ let CesiumMap = React.createClass({ this.forceUpdate(); }, componentWillReceiveProps(newProps) { + if (newProps.mousePointer !== this.props.mousePointer) { this.setMousePointer(newProps.mousePointer); } @@ -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;