maputnik/src/map.jsx

19 lines
441 B
React
Raw Normal View History

import React from 'react'
2016-09-09 14:09:02 +02:00
import ReactMapboxGl, { ZoomControl } from "react-mapbox-gl"
2016-09-09 11:29:18 +02:00
import theme from './theme.js'
2016-09-08 19:47:29 +02:00
export class Map extends React.Component {
2016-09-09 15:49:23 +02:00
static propTypes = {
2016-09-09 23:25:06 +02:00
mapStyle: React.PropTypes.object.isRequired
2016-09-09 15:49:23 +02:00
}
2016-09-08 19:47:29 +02:00
render() {
2016-09-09 23:25:06 +02:00
return <ReactMapboxGl
style={this.props.mapStyle}
accessToken="pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6IjIzcmN0NlkifQ.0LRTNgCc-envt9d5MzR75w">
<ZoomControl/>
</ReactMapboxGl>
2016-09-08 19:47:29 +02:00
}
}