mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 23:25:29 +01:00
Keep existing metadata when toggling inspection #45
This commit is contained in:
parent
3be6d14637
commit
a1dfeca6e0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue