Upgrade inspect

This commit is contained in:
Lukas Martinelli 2017-01-09 00:08:50 +01:00
parent 1538f2e174
commit 4f0c641eb0
2 changed files with 2 additions and 3 deletions

View file

@ -28,7 +28,7 @@
"lodash.throttle": "^4.1.1", "lodash.throttle": "^4.1.1",
"lodash.topairs": "^4.3.0", "lodash.topairs": "^4.3.0",
"mapbox-gl": "^0.29.0", "mapbox-gl": "^0.29.0",
"mapbox-gl-inspect": "^1.0.3", "mapbox-gl-inspect": "^1.0.5",
"mapbox-gl-style-spec": "^8.11.0", "mapbox-gl-style-spec": "^8.11.0",
"mousetrap": "^1.6.0", "mousetrap": "^1.6.0",
"ol-mapbox-style": "0.0.11", "ol-mapbox-style": "0.0.11",

View file

@ -73,7 +73,6 @@ export default class MapboxGlMap extends React.Component {
componentWillReceiveProps(nextProps) { componentWillReceiveProps(nextProps) {
MapboxGl.accessToken = nextProps.accessToken MapboxGl.accessToken = nextProps.accessToken
if(!this.state.map) return if(!this.state.map) return
if(!nextProps.inspectModeEnabled) { if(!nextProps.inspectModeEnabled) {
@ -88,7 +87,7 @@ export default class MapboxGlMap extends React.Component {
this.state.inspect.toggleInspector() this.state.inspect.toggleInspector()
} }
if(this.props.inspectModeEnabled) { if(this.props.inspectModeEnabled) {
this.state.inspect._renderInspector() this.state.inspect.render()
} }
} }