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
Guys, it took too much time to be fixed this and I've forked and created my own version to fixed. I've also opened a pull request on this repo, let's see if they'll merge it, eventually.
After running into this problem myself, and seeing that it's unlikely to be resolved here, I "solved" it by using @googlemaps/react-wrapper instead. One caveat is that I couldn't just replace it in one place or component, I had to make the same change everywhere in my application to avoid loading the Google Maps API twice. That library didn't exist when this issue was first reported, so it's a new option for anyone running into the problem today.
Activity
bertuz commentedon Oct 3, 2020
Guys, it took too much time to be fixed this and I've forked and created my own version to fixed. I've also opened a pull request on this repo, let's see if they'll merge it, eventually.
The pull request:
#483
My branch with the fix:
https://github.com/bertuz/google-maps-react/tree/stylized-div-wrapper
My branch with built files, in order to use it with npm (or yarn or whatever):
https://github.com/bertuz/google-maps-react/tree/wrapping-div-with-styles
To use it directly you can add it like this:
yarn add "https://github.com/bertuz/google-maps-react.git#v2.0.7-alpha.1"LucasBrandt commentedon Sep 8, 2021
After running into this problem myself, and seeing that it's unlikely to be resolved here, I "solved" it by using
@googlemaps/react-wrapperinstead. One caveat is that I couldn't just replace it in one place or component, I had to make the same change everywhere in my application to avoid loading the Google Maps API twice. That library didn't exist when this issue was first reported, so it's a new option for anyone running into the problem today.