Add source layer support

This commit is contained in:
lukasmartinelli
2016-09-10 22:08:26 +02:00
parent 95ae8892f4
commit 890169751b
6 changed files with 150 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ import MdFileUpload from 'react-icons/lib/md/file-upload'
import MdSettings from 'react-icons/lib/md/settings'
import MdLayers from 'react-icons/lib/md/layers'
import MdSave from 'react-icons/lib/md/save'
import MdMap from 'react-icons/lib/md/map'
import { GlStyle } from './style.js'
import { fullHeight } from './theme.js'
@@ -24,6 +26,8 @@ export class Toolbar extends React.Component {
onStyleSave: React.PropTypes.func,
// Open settings drawer
onOpenSettings: React.PropTypes.func,
// Open sources drawer
onOpenSources: React.PropTypes.func,
// Open layers drawer
onOpenLayers: React.PropTypes.func,
// Whether a style is available for download or saving
@@ -94,6 +98,13 @@ export class Toolbar extends React.Component {
</Tooltip>
</Button>
</Block>
<Block>
<Button big={true} onClick={this.props.onOpenSources}>
<Tooltip inverted rounded title="Sources">
<MdMap />
</Tooltip>
</Button>
</Block>
<Block>
<Button big={true} onClick={this.props.onOpenSettings}>
<Tooltip inverted rounded title="Settings">