如何当TileOverlay已完成下载的瓷砖检测? [英] how to detect when TileOverlay has completed downloading tiles?

查看:134
本文介绍了如何当TileOverlay已完成下载的瓷砖检测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用多个TileOverlay对象作为框架我的地图动画。当TileOverlay变得可见(通过TileOverlay.setVisible(真)),它将开始下载瓷砖。我怎么能当覆盖瓦片已被下载和显示的检测?

I'm using multiple TileOverlay objects as "frames" for my map animation. When an TileOverlay is made visible (via TileOverlay.setVisible(true)), it will start downloading the tiles. How can I detect when the tiles for the overlay have been downloaded and displayed?

推荐答案

这是不可能从API知道全部可见瓷砖是下载和显示

It's not possible to know from the API if all visible Tiles are downloaded and displayed.

如果你想知道当一个瓷砖下载,你可以把一些code之前收益 TileProvider.getTile 。这样,你可以指望下载的瓷砖和对你原来的问题一些估计。

If you want to know when a single Tile is downloaded, you may put some code before return in TileProvider.getTile. This way you can count downloaded tiles and have some estimates on your original question.

这篇关于如何当TileOverlay已完成下载的瓷砖检测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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