Overview
Google Maps Component Plugin provides support for displaying interactive maps, directions, and markers in a SAIL interface.
Pre-requisites:
Any chance this component could be updated so that upon initial load, the map is auto-zoomed to the appropriate level so that the provided map markers are within view? We're trying to come up with a formula that would provide the right zoom value, but not having much success. Seems like this would be a fairly simple task by using the fitBounds method. Although a bit dated, I found a code sample on stack overflow: https://stackoverflow.com/questions/3897744/automatically-adjust-zoom-to-accommodate-all-marker-in-a-google-map
Hi Josh, I will look at updating the plugin and post an update soon. I had updated directions component to auto-zoom when using both directions and markers together, but it seems that the marker only component needs an update as well. Stay tuned!
Hi Josh, setting the new fitBounds parameter to true will auto-zoom and auto-center the markers on the map.