mirror of
https://github.com/maputnik/editor.git
synced 2026-06-19 05:37:27 +00:00
Use first vector source for OL3
This commit is contained in:
@@ -66,7 +66,7 @@ class AddModal extends React.Component {
|
||||
if(!this.state.source && sourceIds.length > 0) {
|
||||
this.setState({
|
||||
source: sourceIds[0],
|
||||
'source-layer': this.state['source-layer'] || nextProps.sources[sourceIds[0]][0]
|
||||
'source-layer': this.state['source-layer'] || (nextProps.sources[sourceIds[0]] || [])[0]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,6 @@ class ActiveSourceTypeEditor extends React.Component {
|
||||
borderWidth: 2,
|
||||
borderStyle: 'solid',
|
||||
padding: margins[1],
|
||||
height: 50
|
||||
}}>
|
||||
<SourceTypeEditor
|
||||
onChange={this.props.onChange}
|
||||
|
||||
Reference in New Issue
Block a user