import React from 'react'
import ReactMapboxGl, { ZoomControl } from "react-mapbox-gl"
import theme from './theme.js'
export class Map extends React.Component {
static propTypes = {
styleManager: React.PropTypes.object.isRequired
}
constructor(props) {
super(props)
this.map = null
}
onStyleChange(change) {
this.map[change.command].apply(this.map, change.args);
}
onMapLoaded(map) {
this.map = map;
this.props.styleManager.onStyleChange(this.onStyleChange.bind(this))
}
render() {
if (this.props.styleManager.mapStyle) {
return