Android Google Maps: Set Boundary On 2 Locations And Center On One Of Them
I know how to set boundaries on 2 locations so that both are shown at greatest zoom (using LatLngBounds) I know how to center on a location Please how do I do both at the same t
Solution 1:
googleMap.setCenter(yourPosition);
won't change the zoom factor.
I'd just set the boundaries and then decrease current zoom factor by 1, so the map will be twice as big, then center on a position.
It's a bit dirty, but it will work, I think.
Post a Comment for "Android Google Maps: Set Boundary On 2 Locations And Center On One Of Them"