diff --git a/src/components/map/MapboxGlMap.jsx b/src/components/map/MapboxGlMap.jsx index 0e2afa5..5765f84 100644 --- a/src/components/map/MapboxGlMap.jsx +++ b/src/components/map/MapboxGlMap.jsx @@ -174,6 +174,9 @@ export default class MapboxGlMap extends React.Component { map.on("style.load", () => { this.setState({ map, inspect }); + if(this.props.inspectModeEnabled) { + inspect.toggleInspector(); + } }) map.on("data", e => {