mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 23:50:02 +00:00
Select default value for renderer
This commit is contained in:
@@ -3,7 +3,7 @@ import input from '../../config/input.js'
|
||||
|
||||
class StringInput extends React.Component {
|
||||
static propTypes = {
|
||||
value: React.PropTypes.string.isRequired,
|
||||
value: React.PropTypes.string,
|
||||
style: React.PropTypes.object,
|
||||
onChange: React.PropTypes.func.isRequired,
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ class SettingsModal extends React.Component {
|
||||
['mbgljs', 'MapboxGL JS'],
|
||||
['ol3', 'Open Layers 3']
|
||||
]}
|
||||
value={(this.props.mapStyle.metadata || {})['maputnik:renderer']}
|
||||
value={(this.props.mapStyle.metadata || {})['maputnik:renderer'] || 'mbgljs'}
|
||||
onChange={this.onRendererChange.bind(this)}
|
||||
/>
|
||||
</InputBlock>
|
||||
|
||||
Reference in New Issue
Block a user