多个注释(MKAnnotationView)在同一位置坐标 [英] Multiple Annotations ( MKAnnotationView ) in the same location Coordinates

查看:268
本文介绍了多个注释(MKAnnotationView)在同一位置坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想实现注解分组和动画,如果用户触摸。

Hi I am trying to implement Annotations grouping and animation if the user touch.

我做看起来不同的集群库解决方案,但对我,因为我在同一坐标多个注释这不会工作。

I did look a the different cluster Library solution but this wont work for my because I have multiple Annotations in the same Coordinates.

原来这就是我想要做的。

So this is what I want to do

1 - 我确定那里有在同一个地方(坐标)多个注释?
如何实现这一点?发现在同一坐标注释和建立新组的注释?

1- I identify where there are multiple Annotations in the same place (Coordinates)? how can implement this ? find the annotations in the same coordinates and make a new group annotation ?

2 - 更改注释的颜色(让用户知道)
我可以在这个方法做到这一点
  - (MKAnnotationView *)的MapView:(*的MKMapView)的MapView viewForAnnotation:(ID< MKAnnotation>)注释;

2- change the colour of that Annotation (to let the user know) I can do this on this method -(MKAnnotationView*)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation;

3,如果用户触摸注释该组中,注释将围绕他们的位置的圆移动。

3- if the user touch the annotations in that group , annotations will move in a circle around their location.

到目前为止,我有我所有的注解在地图上的一些有非常浓重的阴影。

So far I have all my annotation on the map some have a very dark shadow.

我想在第一个任务重点现在 - 分组

I want to focus in the first task now - grouping

我不要求为code的例子我能做到,我只是需要帮助搞清楚用来实现任务什么方法。

I am not asking for code example I can do that I just need help figuring out what methods to use to implement the task .

感谢您的帮助。

推荐答案

我最终实现从Stor​​mID这个code

I ended up implementing this code from StormID

在同一处理的MKMapView注释销坐标

我必须做出一些改变,但它的伟大工程。

I have to make some changes but it works great.

这篇关于多个注释(MKAnnotationView)在同一位置坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆