Fix build process for mapbox gl

This commit is contained in:
lukasmartinelli
2016-09-10 16:05:04 +02:00
parent 0e65ac8937
commit e4049fa5da
8 changed files with 49 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react'
import MapboxGl from 'mapbox-gl';
import diffStyles from 'mapbox-gl-style-spec/lib/diff'
import theme from './theme.js'
//import diffStyles from 'mapbox-gl-style-spec/lib/diff'
import { fullHeight } from './theme.js'
import Immutable from 'immutable'
export class Map extends React.Component {
@@ -50,6 +50,11 @@ export class Map extends React.Component {
}
render() {
return <div ref={x => this.container = x}></div>
return <div style={{
...fullHeight,
width: "100%",
}}>
<div ref={x => this.container = x}></div>
</div>
}
}