diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-01-02 01:23:14 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-01-02 01:23:14 +0200 |
| commit | 7831cf281921fdab1ac652528451100bf3479206 (patch) | |
| tree | 934ddb317c083207bc930e317d6e73a170cf8dc5 /geshem.js | |
| parent | 8ffcc2bbd0460616495d18feb74763f31a459c1d (diff) | |
Render imgs into global state
Diffstat (limited to 'geshem.js')
| -rw-r--r-- | geshem.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -20,6 +20,10 @@ class GLMap extends React.Component { token: React.PropTypes.string // mapbox auth token } + getInitialState () { + return window.imgs + } + componentDidMount () { mapboxgl.accessToken = this.props.token @@ -171,7 +175,7 @@ class Map extends React.Component { <GLMap view={view} token='pk.eyJ1IjoieXV2YWRtIiwiYSI6ImNpaWRuaWFxazAwMTJ2b2tyZGRmaWpsNWYifQ.qf_V3CFP_NZtLjk5luNM4g' /> - <Slider step={2} defaultValue={50} /> + <Slider step={1} min={1} max={7} defaultValue={7} /> </div> } } |
