question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix zoom animation with Google Maps API v3.32

See original GitHub issue

This is a new issue to discuss a long-term solution to the zoom animation problem that started with v3.32 of the Google Maps API. See also #490 #510 #530

I’ve begun work in https://github.com/stephenfarrar/google-map-react/tree/zoom-animation Someone could start a branch here, and I’ll create a pull request.

So far, here are some of the issues I’m confused about:

  • The markers are children of overlay.div in src/google_map.js . That div used to be positioned & sized so that it was the size of the map. I don’t think that’s necessary, and I’ve removed it, but perhaps it’s causing problems elsewhere.

  • I’m not totally sure what coordinate system is used in the geo service project() and unproject() when projectFromLeftTop is false. Did it mean ‘relative to the map center’? I’ve made it mean ‘relative to the MapPanes’. This makes sense for markers, but I’m not sure that it makes sense elsewhere.

  • My branch has problems with markers disappearing and reappearing. Perhaps this indicates some problems with keeping track of the current map bounds.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nickpoletcommented, Apr 28, 2018

Works beautifully. Nice job @stephenfarrar + @itsmichaeldiego.

1reaction
stephenfarrarcommented, Apr 23, 2018

@itsmichaeldiego No worries, I’ve also been on vacation the last week! Thanks for reviewing and leaving comments. I’ve tried to address them all, but let me know if things are still unclear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Maps API v3: Can I setZoom after fitBounds?
I accomplished this by initializing the zoom level of the map to 16(not sure if it's the highest possible zoom level on V3)....
Read more >
Disabling Google Maps zooming animation effect
I searched any Google map's options. But no luck, there is no option to disable the zooming animation effect in Google map V3....
Read more >
Controlling Zoom and Pan | Maps JavaScript API
When a user scrolls a page that contains a map, the scrolling action can unintentionally cause the map to zoom. This behavior can...
Read more >
Map option to disable continuous zoom [35820145]
Please add a map option to disable continuous zoom. Since v3.1 there is non-continuous map paning - by using setCenter() instead of panBy() ......
Read more >
Google Maps JavaScript API Episode 3 - Markers - YouTube
In this video series, we will be learning about the Google Maps JavaScript API. We will learn everything about the Google Maps JavaScript ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found