mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 09:45:29 +01:00
Fixed crash raised in issue #647
This commit is contained in:
parent
0858a16ffc
commit
578a920b6d
1 changed files with 4 additions and 4 deletions
|
@ -110,11 +110,11 @@ export default class MapboxGlMap extends React.Component {
|
|||
this.state.inspect._popupBlocked = false;
|
||||
this.state.inspect.toggleInspector()
|
||||
}
|
||||
if(this.props.inspectModeEnabled) {
|
||||
this.state.inspect.render()
|
||||
if (map) {
|
||||
if (this.props.inspectModeEnabled) {
|
||||
this.state.inspect.render();
|
||||
}
|
||||
|
||||
if (map) {
|
||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||
map.showOverdrawInspector = this.props.options.showOverdrawInspector;
|
||||
|
|
Loading…
Reference in a new issue