Issue
When I receive a geocode response from the GeoCode service from Google, it contains a recommended viewport describe as Lat/Lng pairs.
How can I zoom in/out to the recommended viewport ?
Solution
The answer to this problem is to use MapController.zoomToSpan(...). Find the difference between the North/East coordinates and the South/West coordinates and then call the zoomToSpan method.
Fuller description can be found here Getting map zoom level for given bounds on Android like on JS Google Maps API: map.getBoundsZoomLevel(bounds) in user640688 posting.
Answered By - Simon
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.