Select default value for renderer

This commit is contained in:
Lukas Martinelli 2016-12-22 16:54:13 +01:00
parent b874d9864d
commit bc30327299
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ import input from '../../config/input.js'
class StringInput extends React.Component { class StringInput extends React.Component {
static propTypes = { static propTypes = {
value: React.PropTypes.string.isRequired, value: React.PropTypes.string,
style: React.PropTypes.object, style: React.PropTypes.object,
onChange: React.PropTypes.func.isRequired, onChange: React.PropTypes.func.isRequired,
} }

View file

@ -68,7 +68,7 @@ class SettingsModal extends React.Component {
['mbgljs', 'MapboxGL JS'], ['mbgljs', 'MapboxGL JS'],
['ol3', 'Open Layers 3'] ['ol3', 'Open Layers 3']
]} ]}
value={(this.props.mapStyle.metadata || {})['maputnik:renderer']} value={(this.props.mapStyle.metadata || {})['maputnik:renderer'] || 'mbgljs'}
onChange={this.onRendererChange.bind(this)} onChange={this.onRendererChange.bind(this)}
/> />
</InputBlock> </InputBlock>