所有可见地图图块加载时调用的Google地图事件 [英] Google Maps event that is called when all visible map tiles are loaded

查看:202
本文介绍了所有可见地图图块加载时调用的Google地图事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式确定Google地图何时完成在MKMapView中加载可见的图片图块?我想在一个iPad应用程序的屏幕截图,其中有一个Google地图,但我不知道等待多长时间才采取截图。

Is there a way to programmatically determine when Google Maps is done loading visible image tiles in an MKMapView? I would like to take a screenshot of a view in an iPad app that has a Google Map in it, but I don't know how long to wait before taking the screenshot.

我似乎找不到一个事件触发,当瓷砖加载完成,因此屏幕截图实际上会有图像,而不是一个空白的灰色背景。 p>

I can't seem to find an event that triggers when tiles are done loading so the screenshot will actually have images in it, instead of a blank gray background.

推荐答案

此方法:
- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView

This method: - (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView

MKMapViewDelegate协议中会为您做。

这篇关于所有可见地图图块加载时调用的Google地图事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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