iPhone 3.0 MapKit - 同一位置的多个注释 [英] iPhone 3.0 MapKit - Multiple Annotations in the Same Location

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

问题描述

背景:我创建了一个应用程序,允许用户向在线数据库提交条目,并查看该数据库中的其他条目.这些条目包含纬度和经度的地理编码,用于在 MapKit 上定位注释.用户可以使用他们的当前位置或地址提交位置,然后对其进行地理编码.

Background: I have created an application that allows users to submit an entry to an online database, and view other entries from that database. These entries contain geocodes for latitude and longitude which are used for positioning the annotations on the MapKit. Users can submit the location using either their current location or an address, which is then geocoded.

问题:处理落在完全相同坐标上的注释的正确或建议方法是什么?

Question: What is the proper or suggested method of handling annotations that fall on the exact same coordinates?

我正在考虑检查从数据库中提取的 XML 文件中是否有任何重复的地理编码,并创建一个带有自定义 annotationView 的单个注释,该注释显示所有单独的注释.此外,我正在考虑检查重复项并显示多个条目...",并让详细视图显示包含所有条目的表视图.

I was thinking of checking if there are any duplicate geocodes in the XML file pulled from the database and creating a single annotation with a custom annotationView that displays all of the separate ones. In addition, I was thinking of checking for duplicates and displaying "Multiple Entries..." and having the detail view display a table view with all of the entries.

我在正确的轨道上吗?

推荐答案

我认为您在正确的轨道上,您应该检查重复的地理编码并将它们合并为一个.在同一位置显示许多注释可能会造成混淆,因为引脚会堆叠在一起,并且难以区分和一个接一个地点击.

I think you are on the right track, you should check for duplicate geocodes and merge them into one. Displaying many annotations with the same location could be confusing because the pins will stack on top of each other and will be hard to diffrentiate and to click one by one.

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

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