【发布时间】:2016-08-22 14:47:55
【问题描述】:
我有longitude 和latitude,因为我使用didLongPressAtCoordinate,现在我想将marker.title 分配给这个coordinate 的标题。
func mapView(mapView: GMSMapView!, didLongPressAtCoordinate coordinate: CLLocationCoordinate2D) {
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: coordinate.latitude, longitude: coordinate.longitude)
self.googleMapsView.clear()
self.googleMapsView.myLocationEnabled = false
marker.map = self.googleMapsView
marker.title = --> //my problem
}
我找不到好的解决方案
【问题讨论】:
-
嗨 scbas1000,欢迎来到 Stack Overflow。你的问题很模糊,回答的可能性很小。请访问how to ask 上的指南。
-
感谢您的关注,我编辑它,现在我认为是正确的
-
@scbas1000 不,你的问题仍然很模糊,你还没有发布任何代码来显示你到目前为止所拥有的东西。发布您拥有的代码,清楚地讨论您目前正在做什么,您想要实现的目标(示例会有所帮助),然后列出您在到达那里时遇到的错误/问题
-
@scbas1000
//my problem应该是什么意思? -
我找不到好的解决方案
标签: ios swift google-maps-sdk-ios