impress-org / google-maps-builder

One Google Maps plugin to rule them all. Google Maps Builder is intuitive, sleek, powerful and easy to use. Forget the rest, use the best.
https://wordpress.org/plugins/google-maps-builder/
32 stars 9 forks source link

Recenter Marker on Resize #130

Open baden03 opened 8 years ago

baden03 commented 8 years ago

An issue we are running into is that a map with a single marker will be shown centered on page load, but if the page is resized, the marker will not recenter unless the page is refreshed. While this may be by design, it would be great if there was at least a callback that would trigger the recentering of the marker.

Does this exist, or is there a way via JS we can tell the map to recenter dynamically?

This is particularly useful when the map is being loaded in a hidden state, such as a tab or accordion, and based on the available size the map could be resized and recentered.

nishitlangaliya commented 6 years ago

@DevinWalker I need google map api for further development. Would you please check your email ?

Thanks

nishitlangaliya commented 6 years ago

@DevinWalker ,

I tried to reproduce case but I found map remains center while resize the window. I have prepare a video of my troubleshoot. So please review it when you get a chance and let me know if I am missing anything.

https://www.useloom.com/share/326da16c374e4716b346b95211aaee07