diff --git a/src/mixins/GoogleMapsMixin.js b/src/mixins/GoogleMapsMixin.js index 3269d637..acb8b63f 100644 --- a/src/mixins/GoogleMapsMixin.js +++ b/src/mixins/GoogleMapsMixin.js @@ -28,6 +28,14 @@ module.exports = { }; }, + componentWillReceiveProps (nextProps) { + if (!this.state.googleMapsApi && nextProps.googleMapsApi) { + this.setState({ + googleMapsApi: nextProps.googleMapsApi + }); + } + }, + _get_map () { return this.state.map; },