久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

iPhone MKMapView 注解聚類

iPhone MKMapView Annotation Clustering(iPhone MKMapView 注解聚類)
本文介紹了iPhone MKMapView 注解聚類的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有很多圖釘要放在我的地圖上,所以我認為將這些注釋聚集在一起是個好主意.我不太確定如何在 iPhone 上實現這一點,我可以使用谷歌地圖和一些 javascript 示例來解決問題.但是 iPhone 使用它的 mkmapview,我不知道如何在其中聚集注釋.

I've got quite a lot of pins to put on my map so I think it would be a nice idea to cluster those annotations. I'm not really sure how to achieve this on iPhone, I was able to work something out with google maps and some javascript examples. But iPhone uses its mkmapview and I have no idea how to cluster annotations in there.

您有什么好的想法或框架嗎?謝謝.

Any ideas or frameworks that you know and are good? Thanks.

推薦答案

由于這是一個非常常見的問題,我需要一個解決方案,所以我編寫了一個支持集群的自定義子類 MKMapView.然后我把它開源了!你可以在這里得到它:https://github.com/yinkou/OCMapView.

Since this is a very common problem and i needed a solution i have wrote a custom subclass of MKMapView which supports clustering. Then i made it available open source! You can get it here: https://github.com/yinkou/OCMapView.

它管理注釋的集群,您可以自己處理它們的視圖.您不需要做任何事情,只需將 OCMapView 文件夾復制到您的項目中,在您的 nib 中創建一個 MKMapView 并將其類設置為 OCMapView.(或者像常規的 MKMapView 一樣在代碼中創建和委托它)

It manages the clustering of the annotations and you can handle their views by yourself. You don't have to do anything but to copy the OCMapView folder to your project, create a MKMapView in your nib and set its class to OCMapView. (Or create and delegate it in code like a regular MKMapView)

這篇關于iPhone MKMapView 注解聚類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

iOS UIScrollView Lazy Loading(iOS UIScrollView 延遲加載)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
How can i add more than 10 buttons on a navigationbar in iphone application development?(如何在 iphone 應用程序開發中的導航欄上添加 10 多個按鈕?)
Using UITouch inside a UIScrollView(在 UIScrollView 中使用 UITouch)
laying out images in UIScrollView automatically(自動在 UIScrollView 中布局圖像)
Scroll a background in a different speed on a UIScrollView(在 UIScrollView 上以不同的速度滾動背景)
主站蜘蛛池模板: 久久综合久久综合久久综合 | а√中文在线8 | 人人爽人人草 | 日韩一区二区三区在线视频 | 免费在线观看成年人视频 | 精品国产欧美一区二区三区不卡 | 美国一级黄色片 | 亚洲免费网址 | 永久免费视频 | 亚洲人在线观看视频 | 日本欧美在线 | 羞羞视频在线免费 | 免费看大片bbbb欧美 | 成人影院免费视频 | 久久91av| 电影午夜精品一区二区三区 | 成人午夜免费网站 | 日韩免费一区二区 | 日本在线精品视频 | 日韩av免费在线电影 | 久草.com | 精品视频免费在线 | 久久久.com | 色欧美片视频在线观看 | 婷婷国产一区 | 成人av一区二区三区 | 精品免费国产视频 | 天天操夜夜操 | 蜜桃一区二区三区 | 日本久久黄色 | 亚洲国产精品va在线看黑人 | 久久久亚洲 | 99热视| 亚洲在线久久 | a免费观看 | 国产精品明星裸体写真集 | 99热在线免费 | 亚洲国产成人av好男人在线观看 | 国产91精品网站 | 久久精品91 | 成人久久久久 |