mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:31:14 +01:00
Merge pull request #465 from pathmapper/source_layer_list
Use replaceAccessTokens in onStyleChanged
This commit is contained in:
commit
5b90c31645
1 changed files with 5 additions and 1 deletions
|
@ -258,6 +258,10 @@ export default class App extends React.Component {
|
|||
|
||||
this.revisionStore.addRevision(newStyle)
|
||||
if(save) this.saveStyle(newStyle)
|
||||
this.setState({
|
||||
mapStyle: style.replaceAccessTokens(newStyle, {allowFallback: true}),
|
||||
})
|
||||
this.fetchSources()
|
||||
this.setState({
|
||||
mapStyle: newStyle,
|
||||
errors: [],
|
||||
|
@ -266,9 +270,9 @@ export default class App extends React.Component {
|
|||
this.setState({
|
||||
errors: errors.map(err => err.message)
|
||||
})
|
||||
this.fetchSources()
|
||||
}
|
||||
|
||||
this.fetchSources();
|
||||
}
|
||||
|
||||
onUndo = () => {
|
||||
|
|
Loading…
Reference in a new issue