mirror of
https://github.com/maputnik/editor.git
synced 2026-07-29 09:17:28 +00:00
Added guard to map object
This commit is contained in:
@@ -109,8 +109,10 @@ export default class MapboxGlMap extends React.Component {
|
|||||||
this.state.inspect.render()
|
this.state.inspect.render()
|
||||||
}
|
}
|
||||||
|
|
||||||
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
if (map) {
|
||||||
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
map.showTileBoundaries = this.props.options.showTileBoundaries;
|
||||||
|
map.showCollisionBoxes = this.props.options.showCollisionBoxes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user