mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Keep existing metadata when toggling inspection #45
This commit is contained in:
@@ -114,6 +114,7 @@ export default class Toolbar extends React.Component {
|
|||||||
const changedStyle = {
|
const changedStyle = {
|
||||||
...this.props.mapStyle,
|
...this.props.mapStyle,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
...this.props.mapStyle.metadata,
|
||||||
'maputnik:renderer': changedRenderer
|
'maputnik:renderer': changedRenderer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user