You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the parent component, that created it, I would like to do this.refs.myMap.getMapNode(). However this is not possible, because the ReactGoogleMaps.Map is not exposing such method.
My motivation is to centre the map after the component is rendered, in componentDidMount. I want to do it using map.panTo method of Google API.
The text was updated successfully, but these errors were encountered:
When created a map component like this:
In the parent component, that created it, I would like to do
this.refs.myMap.getMapNode()
. However this is not possible, because theReactGoogleMaps.Map
is not exposing such method.My motivation is to centre the map after the component is rendered, in
componentDidMount
. I want to do it usingmap.panTo
method of Google API.The text was updated successfully, but these errors were encountered: