mirror of
https://github.com/maputnik/editor.git
synced 2026-02-27 23:10:01 +00:00
Colored layers
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user