MapKit - iOS 13 - How to show pin annotations on top on the user location annotation?

gab*_*guy 5 mapkit swift ios13

Currently, when I try to add an annotation to the map in the user's location the annotation is not showing up. When I set the annotation (using the same code) besides the user's location it does show up.

The code:

let annotation = MKPointAnnotation()
annotation.coordinate = coordinate // set coordinate
annotation.title = "Title"
annotation.subtitle = "Subtitle"
mapView.addAnnotation(annotation)
Run Code Online (Sandbox Code Playgroud)

小智 5

同样的问题,在 iOS 12 上运行良好,现在当前位置标记附近的所有注释都不再可见。关键信息可能位于用户位置附近并且需要显示。当您缩小地图时,这通常很糟糕,因为您不再知道是否有数据,因为所有注释都靠近用户位置......

有没有文件表明苹果的这一变化?我没有找到任何...提前感谢找到它的人。

如果没有选项可以关闭此行为,我能想到的唯一解决方法是自己手动添加当前位置注释......