mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 04:44:20 +00:00
Added guard to map object
This commit is contained in:
1 parent
805133d10c
commit
77475af3c6
1 file changed
+4
-2
@@ -109,8 +109,10 @@ export default class MapboxGlMap extends React.Component {
|
||||
this.state.inspect.render()
|
||||
}
|
||||
|
||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||
if (map) {
|
||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
Reference in new issue
Block a user