标签: swift annotations mkmapview point-of-interest
我正在构建具有地图视图的应用程序。我想像Apple Maps一样显示兴趣点详细信息。在GoogleMaps中,有一个委托方法。
func mapView(_ mapView: GMSMapView, didTapPOIWithPlaceID placeID: String, name: String, location: CLLocationCoordinate2D)
这正是我想要的。
我知道MapKit没有这样的方法。可以在此附近添加新的扩展程序吗?