Reputation: 5170
I am using Google map in android where I am populating different markers on the map.In the mean time I am difficulty in implementing the zoom level which cover all the markers on the map.
Can anyone tell me the right way of implementing the zoomToSpan in android.
Upvotes: 2
Views: 995
Reputation: 64700
You need to track the positions of all the markers to determine the proper bounds:
You may need to do some extra work to manage centering the map properly so everything is in view, but that should about do it.
Upvotes: 3