答案 0 :(得分:0)
这里有关于如何添加标记的documentation。
具体来说,这几行:
let position = CLLocationCoordinate2D(latitude: 10, longitude: 10)
let marker = GMSMarker(position: position)
marker.title = "Hello World"
marker.icon = GMSMarker.markerImage(with: .black) // or any image here
marker.map = mapView