如何找到多个点的中心? Android的 [英] How do I find the center of multiple points? Android

查看:220
本文介绍了如何找到多个点的中心? Android的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在MapView上放置了多个点,并希望将地图置于这些点的中心,即不是任何特定的点,只是它们的平均中心。

I have multiple points placed on my MapView and would like to centre the map on these points i.e. not any particular one, just the averaged centre of the lot of them.

我知道在Javascript G. Maps API中有一种方法。我想知道是否有一种先前的方法在Android中执行此操作?

I know there's a method for this in the Javascript G. Maps API. I was wondering whether there was a prexisting method to do this in Android?

推荐答案

这个问题看起来很像我前一段时间......

this question looks suspiciously like one I had some time ago ...

Android MapView设置自动缩放直到所有ItemizedOverlay是可见的

这篇关于如何找到多个点的中心? Android的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆