You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently i start with some location and center the map for that location.
But then, i add some more markers which are far away, i want the map to resize(zoom) so that this newly added markers are visible in the map.
How can i do that ?
usually in javascript it would be something like
bounds = new google.maps.LatLngBounds();
bounds.extend(marker.getPosition());
mapNew.fitBounds(bounds); //auto-zoom
mapNew.panToBounds(bounds); //auto-center
The text was updated successfully, but these errors were encountered:
Currently i start with some location and center the map for that location.
But then, i add some more markers which are far away, i want the map to resize(zoom) so that this newly added markers are visible in the map.
How can i do that ?
usually in javascript it would be something like
The text was updated successfully, but these errors were encountered: