Home › Forums › Front-end Issues › Google Map not centering on bounds › Reply To: Google Map not centering on bounds
This is close to what Im looking for for my issue. fitBounds centers my map with multiple markers in a weird way. It should center the map over the Atlantic but for some reason it sets it over the Pacific ocean. I guess it tries to find the best way to set the map based on the marker locations.
panToBounds seems to at least center the map in a better way. Thank you!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.