mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 19:05:34 +01:00
Added guard to map object
This commit is contained in:
parent
805133d10c
commit
77475af3c6
1 changed files with 4 additions and 2 deletions
|
@ -109,9 +109,11 @@ export default class MapboxGlMap extends React.Component {
|
||||||
this.state.inspect.render()
|
this.state.inspect.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (map) {
|
||||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if(!IS_SUPPORTED) return;
|
if(!IS_SUPPORTED) return;
|
||||||
|
|
Loading…
Reference in a new issue