mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 16:40:00 +00:00
Example how to display fields from spec
This commit is contained in:
@@ -91,11 +91,15 @@ export class LayerEditor extends React.Component {
|
||||
}
|
||||
|
||||
if (type === "line") {
|
||||
return <LineLayer />
|
||||
return <LineLayer
|
||||
layer={this.props.layer}
|
||||
/>
|
||||
}
|
||||
|
||||
if (type === "symbol") {
|
||||
return <SymbolLayer />
|
||||
return <SymbolLayer
|
||||
layer={this.props.layer}
|
||||
/>
|
||||
}
|
||||
|
||||
return <UnsupportedLayer />
|
||||
|
||||
Reference in New Issue
Block a user