mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 06:37:45 +01:00
Select default value for renderer
This commit is contained in:
parent
b874d9864d
commit
bc30327299
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue