计算zoomToSpan()度的基础上最小/最大纬度/经度是在图形页面 [英] Calculating zoomToSpan() degrees based on min/max lat/lng to be in the mapView
本文介绍了计算zoomToSpan()度的基础上最小/最大纬度/经度是在图形页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个项目上在MapView覆盖集群。结果
我知道那里的上/下/左/右大部分对象都是。结果
我想用zoomToSpan()方法来放大到该区域。
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 ?
推荐答案
我发现有人张贴一个很好的解决方案在这里这样的问题:
http://www.anddev.org/zoom_and_span_on_a_cluster_of_points-t464.html
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
祝你好运!
这篇关于计算zoomToSpan()度的基础上最小/最大纬度/经度是在图形页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文