问题描述
我希望我的 TileOverlay
表现得像真正的Google地图。当您放大时,图块仍然可见,但像素化,直到新的图块被下载。
当前的行为是:放大时,图块消失,您会看到丑陋的网格,用户必须等到新的图块被加载。这是一个令人讨厌的问题。
这个问题有解决方案吗?
基本上,每当GoogleMap想要绘制特定坐标的图块时,它会要求您提供该图块。您可以使用静态图块(请参阅),也可以提供网址,因此GoogleMap会转到您的Web服务器并自动下载该图块(请参阅)
不知道是否适合你!但如果您的需求不正常,您可以分享有关您的要求的详细信息。谢谢
I would like my TileOverlay
to behave like the real Google Maps. When you zoom in, the tile is still visible but pixelized until the new tile is downloaded.
The current behavior is: when you zoom in, tiles disappear and you see the ugly grid, and the user has to wait until the new tiles are loaded. This is kind of annoying.
Is there a solution to this problem?
Essentially, every time GoogleMap wants to draw tile for specific coordinate - it asks you to provide this tile. You can use either static tile (see TileProvider) or you can provide URL, so GoogleMap goes to your web server and downloads this tile automatically (see UrlTileProvider)
Don't know is it work for you! But you can share details about your requirements if it's not working. Thanks
这篇关于在加载TileOverlay Map API v2 Android时,保持图块可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!