Keep existing metadata when toggling inspection #45

This commit is contained in:
Lukas Martinelli 2017-01-04 11:59:24 +01:00
parent 3be6d14637
commit a1dfeca6e0

View file

@ -114,6 +114,7 @@ export default class Toolbar extends React.Component {
const changedStyle = {
...this.props.mapStyle,
metadata: {
...this.props.mapStyle.metadata,
'maputnik:renderer': changedRenderer
}
}