Colored layers

This commit is contained in:
lukasmartinelli
2016-09-09 18:53:57 +02:00
parent f0e61fd0be
commit bbf75876f3
9 changed files with 71 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react'
import { LayerEditor } from './layers.jsx'
import { SettingsEditor } from './settings.jsx'
import theme from './theme.js'
/** The workspace drawer contains the editor components depending on the context
@@ -17,6 +18,10 @@ export class WorkspaceDrawer extends React.Component {
workspaceContent = <LayerEditor styleManager={this.props.styleManager}/>
}
if(this.props.workContext === "settings" && this.props.styleManager.mapStyle) {
workspaceContent = <SettingsEditor styleManager={this.props.styleManager}/>
}
return <div style={{
zIndex: 100,
position: "fixed",