mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 08:57:46 +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 = {
|
||||
...this.props.mapStyle,
|
||||
metadata: {
|
||||
...this.props.mapStyle.metadata,
|
||||
'maputnik:renderer': changedRenderer
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue