Remove particular GMSMarker from GMSMapview using Google Map sdk in ios

后端 未结 9 3157
-上瘾入骨i
-上瘾入骨i 2021-02-19 23:18

I am integrating google maps sdk. Its all work fine. But how to remove particular Marker(Pin Point) when second will appear.(I am not using Mapkit)

I want the following:

9条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 00:13

    When you tap on specific marker this will remove that marker

    - (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker {
    
        marker.map = nil;
        return YES;
    }
    

提交回复
热议问题