doublesecretagency / craft-googlemaps

Google Maps plugin for Craft CMS - Maps in minutes. Powered by the Google Maps API.
https://plugins.doublesecretagency.com/google-maps/
Other
10 stars 8 forks source link

Marker Cluster Zoom Issue #83

Closed brihermanson closed 1 year ago

brihermanson commented 1 year ago

This plugin is so great, but I'm having one issue. When clicking on a marker cluster, there is a momentary flash of a overly zoomed in version of the map before the correct zoom level load in. Is there a way to prevent this?

Here is what shows momentarily on clicking a cluster:

Screen Shot 2023-05-08 at 8 53 47 AM

Here is the correct zoom level it settles into after a split second:

Screen Shot 2023-05-08 at 8 54 18 AM

Any ideas? Thank you!

lindseydiloreto commented 1 year ago

Hi @brihermanson, glad you're digging the plugin! 🙏

There's nothing that can be done about that, unfortunately. It's purely an artifact of the Marker Clusterer library, which is now maintained by Google directly. Only Google could solve that problem, but I doubt it's high on their radar.

For better or worse, it has nothing to do with the Craft plugin... you would be seeing the same behavior whether you used the plugin or not. I know it's not the answer you're looking for, but take solace in the fact that it's not affecting only you.

Hope that helps!