我可以在“ didTapAt”事件中在Google地图上添加许多标记和圆圈,但是我也要删除它们,对于标记,我可以在“ didTap marker”事件中执行此操作,但是如何删除其形状而不是其他形状?
let circle = GMSCircle(position: CLLocationCoordinate2D(latitude: 40.7336299, longitude: 30.1616061, radius: 10)
circle.isTappable = true
circle.map = mapView
func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) {
overlay.map = nil
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.