Questions tagged [mkclusterannotation]

6 questions
3
votes
0 answers

How to fetch an annotation which is have the same co-ordinates from MKClusterAnnotation?

I'm currently developing an app where I load different types of annotations by using MKClusterAnnotations from apple's mapkit. We know MKClusterAnotation is An annotation that groups two or more distinct annotations into a single entity. Is this…
Ram
  • 764
  • 1
  • 7
  • 20
3
votes
1 answer

MapKit how to opt-out from clustering when an annotation is selected

I’m using iOS 11 clustering and it works really fine, basically you just need to ad an identifier to the clusteringIdentifier property of an MKAnnotationView. Everything works perfectly but I have an issue, when a user select a marker from a map…
Andrea
  • 26,120
  • 10
  • 85
  • 131
2
votes
1 answer

Crash due to unrecognised selector on MKPointAnnotation

I have done clustering for the MKMapView. class BaseMKPointAnnotation: MKPointAnnotation { var index: Int! } class ClusteredAnnotationView: MKMarkerAnnotationView { override init(annotation: MKAnnotation?, reuseIdentifier: String?) { …
1
vote
1 answer

Set limit on Clustering annotations using Mapkit

I have added clustering with annotations in my project and it's working fine but having problem to set the limit. Please check below image here, grouping is done for 6 annotations but I want to set clustering limit which should start grouping at 20…
PPL
  • 6,357
  • 1
  • 11
  • 30
0
votes
1 answer

Is there a way to ensure that clustering procedure is finished in MapKit?

I have an app with a map section displaying devices. In some cases devices may be either really close to each other or even have exactly the same coordinates. In order to display it I use default clustering mechanism in MapKit. func mapView(_…
AlexR
  • 33
  • 6
0
votes
1 answer

How to stop an MKClusterAnnotation from displaying a callout

Question: How do I prevent an MKClusterAnnotation from displaying a callout? Background: I'm a beginner at programming, please be gentle. I'm trying to make a MapKit-based app which shows a number of sites on a map. I have populated the map with…
frostbite
  • 5
  • 4