subsequent render breaks google map
See original GitHub issueSo at first I thought it was an issue with on-load
, but I realized that Google Maps supports using an element not yet in the DOM…
Ok, so I have an example here where subsequent rerenders break the map: https://github.com/knownasilya/pizza-locator/blob/gh-pages/components/google-map.js#L13
To reproduce:
- visit https://knownasilya.github.io/pizza-locator/
- click “closest locations”
Map disappears on second render…
Looks like the element doesn’t get updated properly the second time. Any thoughts?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top Results From Across the Web
Map rendering is broken in Safari on laptop - Google Support
Suddenly maps won't render. The map shows correctly when initially loading, but then switches to a broken display.
Read more >reactjs - re-render GoogleMapReact - Stack Overflow
Hi I am creating nextjs Application in which I have used GoogleMapReact from google-map-react library,I want to re-render my GoogleMapReact ...
Read more >google-map-react now load google maps api all the time even ...
I use this lib, but I manually load the google maps api. now i just found out that the lib is loaded multiple...
Read more >Immersive view coming soon to Maps — plus more updates
Take a look at the latest updates to Maps, including a more intuitive, immersive way to explore the world.
Read more >Building an interactive map with Google Maps ... - YouTube
Looking for a crash course on how to build amazing, interactive maps with React and Google Maps Platform? In this video, Leigh Halliday ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, I fixed it with your suggestion. See my latest commit.
Awesome!
Yeah, the google maps API is a bit odd sometimes, but this is great 😃