Have both Mapbox GL and OL3 as map targets

This commit is contained in:
lukasmartinelli
2016-11-25 13:18:35 +01:00
parent b1d80a35ac
commit 6288fa51d4
3 changed files with 63 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ import Container from 'rebass/dist/Container'
import Block from 'rebass/dist/Block'
import Fixed from 'rebass/dist/Fixed'
import { Map } from './map.jsx'
import { MapboxGlMap, OpenLayer3Map } from './map.jsx'
import {Toolbar} from './toolbar.jsx'
import style from './style.js'
import { loadDefaultStyle, SettingsStore, StyleStore } from './stylestore.js'
@@ -110,7 +110,7 @@ export default class App extends React.Component {
accessToken={this.state.accessToken}
onAccessTokenChanged={this.onAccessTokenChanged.bind(this)}
/>
<Map
<OpenLayer3Map
mapStyle={this.state.currentStyle}
accessToken={this.state.accessToken}
/>