Support propagating from different layer types

This commit is contained in:
lukasmartinelli
2016-09-13 20:30:03 +02:00
parent c630b300be
commit 4d70351848
9 changed files with 76 additions and 43 deletions

View File

@@ -80,6 +80,7 @@ export class LayerEditor extends React.Component {
return <FillLayer
layer={this.props.layer}
onPaintChanged={this.onPaintChanged.bind(this)}
onLayoutChanged={this.onLayoutChanged.bind(this)}
/>
}
@@ -87,18 +88,23 @@ export class LayerEditor extends React.Component {
return <BackgroundLayer
layer={this.props.layer}
onPaintChanged={this.onPaintChanged.bind(this)}
onLayoutChanged={this.onLayoutChanged.bind(this)}
/>
}
if (type === "line") {
return <LineLayer
layer={this.props.layer}
onPaintChanged={this.onPaintChanged.bind(this)}
onLayoutChanged={this.onLayoutChanged.bind(this)}
/>
}
if (type === "symbol") {
return <SymbolLayer
layer={this.props.layer}
onPaintChanged={this.onPaintChanged.bind(this)}
onLayoutChanged={this.onLayoutChanged.bind(this)}
/>
}