Adding Click Event on InfoWindow/Marker in Google Maps SDK for native iOS/objective C

后端 未结 7 2123
无人及你
无人及你 2020-12-05 05:41

Simple Question

I´m working on an App for iOS where I embedded the new Google Map for native iOS. Everything works fine except one problem where I can´t find a propp

7条回答
  •  难免孤独
    2020-12-05 06:04

    Swift 5.1

    You can use GMSMapViewDelegate with:

    mapView.delegate = self
    
    func mapView(_ mapView: GMSMapView, didTapInfoWindowOf marker: GMSMarker) {
            print("InfoView tapped")
    }
    

提交回复
热议问题