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

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

问题描述

背景:我已经创建了一个应用程序,允许用户提交到一个在线数据库的条目,并查看从该数据库中其他条目。这些条目包含经纬度地理codeS它们用于定位在MapKit注释。用户可以使用任何自己的当前位置或地址,然后将其地缘codeD提交的位置。

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?

我想检查,如果有任何重复地缘codeS 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.

我在正确的轨道上吗?

推荐答案

我认为你是正确的轨道上,你应该检查重复地缘codeS和它们合并成一个。显示许多注解以相同的位置可能是令人困惑的,因为销将堆叠在彼此的顶部并且将很难diffrentiate并且由一个点击之一。

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天全站免登陆