Android SDK中的MapView。获取地图缩放级别/位置 [英] Android SDK mapView. Get map zoom level/position

查看:159
本文介绍了Android SDK中的MapView。获取地图缩放级别/位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在地图上Android的工作,我能够与覆盖填充它。

I have the map working on android and am able to populate it with overlays.

但覆盖能力只有这么好。如果我添加了太多的覆盖和刷新过于频繁,我可以创建一个应用程序,这是非常处理器的硬(没用)。

But the overlay ability is only so good. If I add too many overlays and refresh too often, I can create an app that is very processor-hard (useless).

我想要做的是只加载在地图的缩放级别内的覆盖什么。

What I want to do is only load the overlays that are within the zoom level of the map.

我如何获得什么级别的地图使用谷歌API的覆盖,逐项列出的,geopoints放大?

How to I get at what level the map is zoomed using Google APIS, overlays, itemized, and geopoints?

谢谢,

推荐答案

您可以使用 getZoomLevel 和<一个href=\"https://developers.google.com/maps/documentation/android/reference/com/google/android/maps/MapView#getMapCenter%28%29\"相对=nofollow> getMapCenter 上MapView的方法。您也可以通过<读href=\"https://developers.google.com/maps/documentation/android/reference/com/google/android/maps/MapView\"相对=nofollow>图形页面类文档。

这篇关于Android SDK中的MapView。获取地图缩放级别/位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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