mirror of
https://github.com/maputnik/editor.git
synced 2026-07-27 16:27:26 +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 {
|
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,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user