diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-01-09 20:56:18 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-01-09 20:56:18 +0200 |
| commit | b5ff42cf15fd19002c00e228be5b8b336c754f21 (patch) | |
| tree | a5087c6c78f385d2592fcfbee62c3286ff583f36 /geshem.js | |
| parent | d33faf83edccefd22e5564b9ab2c1f63291a7ebe (diff) | |
Remove leftover layer opacity code
Diffstat (limited to 'geshem.js')
| -rw-r--r-- | geshem.js | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -61,9 +61,6 @@ class GLMap extends React.Component { "paint": { "raster-opacity": 0.85 } - // "layout": { - // "visibility": "none" - // } }) } @@ -78,8 +75,6 @@ class GLMap extends React.Component { this.map.on('zoom', (e) => { if (this.map.getZoom() > 7) { - // this.map.setPaintProperty('radar-140-' + this.state.slider, 'raster-opacity', 0.85) - // this.map.setPaintProperty('radar-280-' + this.state.slider, 'raster-opacity', 0) this._removeRadarLayer('280', this.state.slider) this._addRadarLayer('140', this.state.slider) this.setState({ @@ -88,8 +83,6 @@ class GLMap extends React.Component { }) } else { - // this.map.setPaintProperty('radar-140-' + this.state.slider, 'raster-opacity', 0) - // this.map.setPaintProperty('radar-280-' + this.state.slider, 'raster-opacity', 0.85) this._removeRadarLayer('140', this.state.slider) this._addRadarLayer('280', this.state.slider) this.setState({ @@ -103,23 +96,17 @@ class GLMap extends React.Component { var i = 0; for (let v of window.imgs['140']) { this._addRadarSource('140', i++, v) - // this._addRadarLayer('140', i++) } i = 0; for (let v of window.imgs['280']) { this._addRadarSource('280', i++, v) - // this._addRadarLayer('280', i++) } - // this.map.setPaintProperty('radar-280-0', 'raster-opacity', 0.85) this._addRadarLayer('280', '0') }) } componentWillReceiveProps (props) { - // this.map.setPaintProperty('radar-' + this.state.res + '-' + this.state.slider, 'raster-opacity', 0) - // this.map.setPaintProperty('radar-' + this.state.res + '-' + props.slider, 'raster-opacity', 0.85) - this._removeRadarLayer(this.state.res, this.state.slider) this._addRadarLayer(this.state.res, props.slider) |
