mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 06:45:31 +01:00
Merge pull request #386 from orangemug/fix/showTileBoundaries-error
Added guard to map object
This commit is contained in:
commit
225d0388ce
1 changed files with 4 additions and 2 deletions
|
@ -111,8 +111,10 @@ export default class MapboxGlMap extends React.Component {
|
||||||
this.state.inspect.render()
|
this.state.inspect.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
if (map) {
|
||||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||||
|
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
Loading…
Reference in a new issue