Reputation: 3599
How to zoom in by giving 2 coordinates(2 Locations) ?
Is there API method for android ?
Thanks in advance.
Upvotes: 2
Views: 541
Reputation: 1006724
There is no API for that. The closest is zoomToSpan()
on MapController
. You could compute the center point between your two coordinates, center the map there, and use zoomToSpan()
to attempt to zoom in/out to make your two locations visible on the map. I have not tried this method, so I do not know how well it works.
Upvotes: 3