Feature request: Dragging for cluster annotation views in MapKit
| Originator: | inbox | ||
| Number: | rdar://32710908 | Date Originated: | 2017-06-12 |
| Status: | Open | Resolved: | |
| Product: | iOS/SDK: Maps | Product Version: | 11.0 |
| Classification: | Feature Request | Reproducible: | Always |
Summary: Please consider adding the ability to drag and drop cluster annotations (MKClusterAnnotation) on the map, just like regular annotations. I have provided my use case, which I believe to be a genuine and useful one, below. My photography app has a geotagging feature, in which users can drag and drop photos from a tray onto a map to geotag them at the dropped location. Additionally, photos may be placed on the map automatically either from reading geotags built into the photos, or by comparing the photos' timestamps to a location history recorded by the user. One feature is that the user can pick up a pin from the map and move it somewhere else to alter a geotag. While at first glance this seems like a useless feature, there are a few reasons a user might want to alter a geotag: - Data accuracy. To save battery, many cameras cache GPS fix data with a reasonably high refresh time. This can cause tags to be inaccurate. Also, depending on the accuracy of the GPS fix, the geotag might be incorrect. - Privacy. Geotags can be accurate to within a small number of meters. A photographer might want to move geotags away from their house, but still keep a geotag in their town for archiving and search reasons. As you can imagine, it would be useful to be able to alter many geotags at a time. For instance, if I’ve been wandering around the garden taking photos of my kids, I could zoom out a little so all of the tags are clustered, then pick up that cluster and drop it on the town marker on the map to move all of those geotags there in one operation. Thank you for your consideration. Steps to Reproduce: 1) Set up a project that presents and MKMapView and add annotations close to one another with clustering allowed. 2) When dequeuing annotation views for the annotations, ensure the views has isDraggable set to true. 3) Attempt to drag the annotation around the map, and observe that it is possible. 4) Zoom out to cause the annotations to cluster together. 5) Attempt to drag the clustered annotation. Expected Results: I would expect there to be an (opt-in?) way to allow clustered annotations to be dragged around the map. Observed Results: The clustered annotation (MKClusterAnnotation) is not draggable. I recognise that this is by design at the moment. Version: 11.0/15A5278f
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!