Google Maps event that is called when all visible map tiles are loaded

无人久伴 提交于 2019-12-07 02:58:09

问题


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.

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.


回答1:


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

in the MKMapViewDelegate protocol will do that for you.



来源:https://stackoverflow.com/questions/5858863/google-maps-event-that-is-called-when-all-visible-map-tiles-are-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!