简体   繁体   English

如何防止整个地图加载到IOS中

[英]How to prevent entire map from loading in IOS

I have a mapview with many annotations which loads when the user touches a button. 我有一个带许多注释的mapview,当用户触摸按钮时就会加载。 The problem is that loading and populating the map with all the annotations already takes a long time. 问题在于,使用所有注释加载和填充地图已经花费了很长时间。 Is there a way to prevent unused areas of the map from loading in IOS? 有没有办法防止地图的未使用区域加载到IOS中? Is there a way to load only the part of the map that I am using on my App? 有没有办法只加载我在App上使用的地图部分? Thanks 谢谢

The more annotations you have the slower the map will be. 注释越多,地图的速度就越慢。 I recommend either showing less annotations at a time or clustering annotations. 我建议一次显示较少的批注或对批注进行聚类。 Here are a few cocoapods that do annotation clustering 这是一些进行注释聚类的cocoapods

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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