轻按一下即可显示兴趣点细节

时间:2019-07-18 08:34:25

标签: swift annotations mkmapview point-of-interest

我正在构建具有地图视图的应用程序。我想像Apple Maps一样显示兴趣点详细信息。在GoogleMaps中,有一个委托方法。

func mapView(_ mapView: GMSMapView, didTapPOIWithPlaceID placeID: String, name: String, location: CLLocationCoordinate2D)

这正是我想要的。

我知道MapKit没有这样的方法。可以在此附近添加新的扩展程序吗?

0 个答案:

没有答案