【发布时间】:2018-10-07 14:39:47
【问题描述】:
【问题讨论】:
-
欢迎来到 Stack Overflow!图片不是一个可接受的问题,请提供有关您的问题以及您尝试解决的问题的更多详细信息。
标签: ios swift google-maps swift3 google-maps-markers
【问题讨论】:
标签: ios swift google-maps swift3 google-maps-markers
这是关于如何添加标记的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
【讨论】: