1
iOS(swift)のクラスタ注釈マップキットのデフォルトの色を変更しようとしています。市販のクラスタアノテーションの色を変更します。 iOS、Swift
可能ですか?個々の注釈は変更できますが、クラスタは変更できません。
以下は私のコードです。
@available(iOS 11.0, *)
func mapView(_ mapView: MKMapView, clusterAnnotationForMemberAnnotations memberAnnotations: [MKAnnotation]) -> MKClusterAnnotation {
let vehicles = MKClusterAnnotation(memberAnnotations: memberAnnotations)
vehicles.title = "Photos"
vehicles.subtitle = nil
return vehicles
}