Pregunta

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

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top