mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 01:35:25 +01:00
Merge pull request #585 from orangemug/fix/issue-403
Update map style even if inspectModeEnabled=true
This commit is contained in:
commit
0196ba4eb4
1 changed files with 3 additions and 5 deletions
|
@ -87,11 +87,9 @@ export default class MapboxGlMap extends React.Component {
|
|||
const metadata = props.mapStyle.metadata || {}
|
||||
MapboxGl.accessToken = metadata['maputnik:mapbox_access_token'] || tokens.mapbox
|
||||
|
||||
if(!props.inspectModeEnabled) {
|
||||
//Mapbox GL now does diffing natively so we don't need to calculate
|
||||
//the necessary operations ourselves!
|
||||
this.state.map.setStyle(props.mapStyle, { diff: true})
|
||||
}
|
||||
//Mapbox GL now does diffing natively so we don't need to calculate
|
||||
//the necessary operations ourselves!
|
||||
this.state.map.setStyle(props.mapStyle, {diff: true})
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
|
|
Loading…
Reference in a new issue