mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 19:41:18 +01:00
Fix for bad lint error.
This commit is contained in:
parent
ffce8e3ba5
commit
1fe31ac0ec
1 changed files with 4 additions and 1 deletions
|
@ -93,13 +93,16 @@ export default class MapboxGlMap extends React.Component {
|
|||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
const map = this.state.map;
|
||||
|
||||
if(this.props.inspectModeEnabled !== prevProps.inspectModeEnabled) {
|
||||
this.state.inspect.toggleInspector()
|
||||
}
|
||||
if(this.props.inspectModeEnabled) {
|
||||
this.state.inspect.render()
|
||||
}
|
||||
this.state.map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
|
||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
|
Loading…
Reference in a new issue