mirror of
https://github.com/maputnik/editor.git
synced 2026-08-24 14:07:33 +00:00
Fixed crash raised in issue #647
This commit is contained in:
@@ -110,11 +110,11 @@ export default class MapboxGlMap extends React.Component {
|
|||||||
this.state.inspect._popupBlocked = false;
|
this.state.inspect._popupBlocked = false;
|
||||||
this.state.inspect.toggleInspector()
|
this.state.inspect.toggleInspector()
|
||||||
}
|
}
|
||||||
if(this.props.inspectModeEnabled) {
|
|
||||||
this.state.inspect.render()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (map) {
|
if (map) {
|
||||||
|
if (this.props.inspectModeEnabled) {
|
||||||
|
this.state.inspect.render();
|
||||||
|
}
|
||||||
|
|
||||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||||
map.showOverdrawInspector = this.props.options.showOverdrawInspector;
|
map.showOverdrawInspector = this.props.options.showOverdrawInspector;
|
||||||
|
|||||||
Reference in New Issue
Block a user