MKAnnotationView
s documentation says
Managing Collisions Between Annotation Views
var collisionMode: MKAnnotationView.CollisionMode
The collision mode to use when interpreting the collision frame rectangle.
enum MKAnnotationView.CollisionMode
Constants indicating how to interpret the collision frame rectangle of an annotation view.
I'd like to debug some collision behaviour that I don't understand.
So how do I get the collision frame rectangle
that is referenced in the MapKit documentation? I'll probably try to draw this rectangle for visual debugging.
How do I set the collision frame rectangle
? Maybe not directly, but which of the many involved views determines this rectangle?
This is the only reference of this term that I found in MapKit
Edit
Is this collision frame rectangle
only used to make clusters or is it also used to hide the cluster with a lower display priority?
I have two AnnotationViews
visually drawn on top of each other. One has displayPriority = .required
, one has displayPriority = .defaultHigh
. One should disappear. But where are their collision frame rectangle
s? Do they really overlap?