문제

Is there a way how can I change callout view when there are multiple annotations at same position? If there is one then just show normal callout and if there is more then I would like to show callout with text like: "3 items at this place" and then I would go to table view and then to detail (with one item at place just go to detail place). Is it possible? What's best way to do this? Thanks

도움이 되었습니까?

해결책

This technique is called clustering. Check out cocoacontrols.com for some approaches for doing this with MapKit.

다른 팁

About 18 minutes into the WWDC 2011 #111 - Visualizing Information Geographically with MapKit video, Apple illustrates an example of how you can prevent overlapping annotations (including some nice animation revealing and hiding more detailed annotations as you zoom in and out). It could easily be adapted to handle the different callouts that you describe, too.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top