久久久久久久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 上以不同的速度滾動背景)
主站蜘蛛池模板: 毛片99| 亚洲精品99| 精品欧美激情在线观看 | 国产免费一区二区三区免费视频 | 91传媒在线播放 | 91香蕉| 日本成人在线观看网站 | 国产精品久久国产愉拍 | 国产视频一区二区 | 999国产视频 | h片在线看 | 污污的网站在线观看 | 亚洲综合大片69999 | www.jizzjizz| 国产一区二区三区视频免费观看 | 麻豆毛片 | 91精品久久久 | 亚洲成人精品久久久 | 成人免费视频网站在线看 | 久久精品国产99国产精品 | 亚洲一区国产精品 | 午夜精品视频在线观看 | 久久久久久国产精品免费免费狐狸 | 亚洲欧洲精品成人久久奇米网 | 亚洲不卡在线观看 | 91污在线| 第一色在线 | 国产91丝袜在线播放 | 国产成人精品久久二区二区91 | 天天操夜夜操 | 欧美成人手机在线 | 久久美女网 | 九色porny自拍视频 | 国产一区欧美 | 欧洲一区二区三区 | 国产精品久久av | 久久国产精品-国产精品 | 91视频网址| 久久久久久国产精品免费免费 | 国产99久久精品一区二区永久免费 | 精品国产99 |