久久久久久久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 上以不同的速度滾動背景)
主站蜘蛛池模板: 欧美在线一区二区三区 | 欧美综合久久 | 免费一级欧美在线观看视频 | 黄一区二区三区 | 91久久精品一区二区二区 | 日韩免费高清视频 | www.日日操 | 免费在线a视频 | 日韩欧美在线视频观看 | 亚洲精品久久久久中文字幕欢迎你 | 久久一区二区三区电影 | 日韩欧美视频在线 | 亚洲啊v在线| 九九免费在线视频 | 久久99精品久久 | 韩日视频在线观看 | 国产亚洲高清视频 | 日韩有码在线观看 | 开操网 | av不卡一区 | 欧美视频成人 | 国产a级毛片 | 中文字幕日韩欧美一区二区三区 | 久久一二 | 看真人视频一级毛片 | 中国一级特黄毛片大片 | 青青久久 | 中文字幕在线观看视频一区 | 成人av播放| 天天曰夜夜 | 日韩亚洲欧美一区 | 久久香蕉精品视频 | 黄色一级电影在线观看 | 在线免费亚洲视频 | 久久久久久综合 | 国产精品久久久久9999鸭 | 激情视频中文字幕 | 欧美一级大片 | www国产亚洲精品 | 亚洲免费视频一区 | 中文字幕在线第一页 |