简体   繁体   中英

OpenLayers shows white tiles on iPad

I'm experiencing some issues to do with OpenLayers in an UIWebView on the iPad. It's offline tile based layer loading locally from the users documents directory. Some tiles appear white and do not change until I change zoom levels, or scroll them far off the screen. However, this doesn't appear to be an issue that setting the number of retries will solve as I changed the missing tile color to red and it still appears white.

I'm wondering if the iPad is giving up on rendering the tiles due to memory constraints?

请尝试尝试此方法,并告诉我们您是否仍然有问题。

OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;

我刚刚解决了这个问题,似乎src从未使用标准的Image.clear()方法发布,我花了一些时间并进行了调整才能使其正常工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM