0
我嘗試使用mapView()函數,並且只有當我單擊標記時,選擇標記纔會更改爲自定義標記圖標。如何更改默認標記(WITH CLUSTERING)。如何在iOS中設置自定義標記圖標與標記簇Swift
func mapView(_ mapView: GMSMapView, didTap marker: GMSMarker) -> Bool {
let poiItem = marker.userData as? POIItem
marker.title = poiItem?.devname
marker.snippet = poiItem?.address
marker.icon = UIImage(named: "runcar1")
return false
}