diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-01-08 22:50:31 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-01-08 22:50:31 +0200 |
| commit | d691b26b23ae9321bb431fa5c12bf75d55e5f13a (patch) | |
| tree | c3d6a77a27120b6860b51af8e3836f8e8d8e633e /geshem.js | |
| parent | 43f3f900ed3b3664a2a38e24f5b3a49a1d33f21b (diff) | |
Add babel polyfill to fix ES6 behavior
Diffstat (limited to 'geshem.js')
| -rw-r--r-- | geshem.js | 31 |
1 files changed, 16 insertions, 15 deletions
@@ -1,3 +1,5 @@ +import 'babel-polyfill' + import React from 'react' import ReactDOM from 'react-dom' @@ -20,20 +22,6 @@ class GLMap extends React.Component { token: React.PropTypes.string // mapbox auth token } - RASTER_COORDS = { - '140': [ - [33.35317413, 33.27232471], - [36.32243686, 33.27232471], - [36.32243686, 30.72293428], - [33.35317413, 30.72293428] - ], - '280': [ - [31.93095218, 34.5156862], - [37.86644267, 34.5156862], - [37.86644267, 29.42911589], - [31.93095218, 29.42911589] - ] - } constructor (props) { super(props) @@ -41,6 +29,20 @@ class GLMap extends React.Component { 'res': '280', 'slider': 0 } + this.RASTER_COORDS = { + '140': [ + [33.35317413, 33.27232471], + [36.32243686, 33.27232471], + [36.32243686, 30.72293428], + [33.35317413, 30.72293428] + ], + '280': [ + [31.93095218, 34.5156862], + [37.86644267, 34.5156862], + [37.86644267, 29.42911589], + [31.93095218, 29.42911589] + ] + } } _addRadarSource (res, i, url) { @@ -126,7 +128,6 @@ class GLMap extends React.Component { class Map extends React.Component { onChangeHandler = (e) => { - console.log('handle', e) this.setState({ 'slider': 7-e }) |
