How to show Cluster for MKPolyline with geojson data View in iOS Swift

你说的曾经没有我的故事 提交于 2020-01-03 02:31:10

问题


I am loading Mapview with geojson data. It contains 7000 data in that geojson file. Even I loaded that data into Mapview. Its loaded fine, but, the problem is mapview getting freezing/stucking for few seconds while zoomin/zoomou So, its getting very bad user experience.

Even, I loaded the data in background thread, still mapview getting freeze.

After I read few forums, we can load clusters to avoid this kind freeze UI issue for mapview, but, I did not found for geojson data loading with clusters and for MKpolylines. I am showing in my mapview Polylines and Annoations by loading 2 geojson files to MKMapview.

Anyone can suggest me, how to show clusters for MKPolylines and Annotations by loading with geojson files.

For more info please check this following link which I have raised query for my mapview freezing issue.

MapView getting freezing for few seconds while loading thousands of data and zoom-in time in iOS

来源:https://stackoverflow.com/questions/49365001/how-to-show-cluster-for-mkpolyline-with-geojson-data-view-in-ios-swift

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