views:

280

answers:

1

I have a cluster of items on an overlay in a mapView.
I know where the top/bottom/left/right most objects are.
I want to use the zoomToSpan() method to zoom onto that area.

What is the proper way to calculate the lat/lng degrees for this method ?

A: 

I found someone else posting a good solution to this problem here: http://www.anddev.org/zoom_and_span_on_a_cluster_of_points-t464.html

Good luck!

Adam
Thanks. I took a look at this, it doesnt seem to work too well..
Itsik
They were missing Math.abs on the calculations ... now it works
Itsik