tags:

views:

60

answers:

1

Hi guys.

How to zoom in by giving 2 coordinates(2 Locations) ?

Is there API method for android ?

Thanks in advance.

+3  A: 

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.

CommonsWare
Thanks for the response. I got it.
AndroiDBeginner