diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 02ddc8d..d48f423 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -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(); + } + map.showTileBoundaries = this.props.options.showTileBoundaries; map.showCollisionBoxes = this.props.options.showCollisionBoxes; map.showOverdrawInspector = this.props.options.showOverdrawInspector;