Split OL3 and GL map into separate files

This commit is contained in:
lukasmartinelli
2016-11-25 13:31:41 +01:00
parent 6288fa51d4
commit d5b5261c1d
6 changed files with 196 additions and 200 deletions
+3 -2
View File
@@ -6,7 +6,8 @@ import Container from 'rebass/dist/Container'
import Block from 'rebass/dist/Block'
import Fixed from 'rebass/dist/Fixed'
import { MapboxGlMap, OpenLayer3Map } from './map.jsx'
import { MapboxGlMap } from './gl.jsx'
import { OpenLayers3Map } from './ol3.jsx'
import {Toolbar} from './toolbar.jsx'
import style from './style.js'
import { loadDefaultStyle, SettingsStore, StyleStore } from './stylestore.js'
@@ -110,7 +111,7 @@ export default class App extends React.Component {
accessToken={this.state.accessToken}
onAccessTokenChanged={this.onAccessTokenChanged.bind(this)}
/>
<OpenLayer3Map
<OpenLayers3Map
mapStyle={this.state.currentStyle}
accessToken={this.state.accessToken}
/>