I updated my app to use version 1.6 of Google Maps API for iOS. It now shows me that three important methods of GMSMapView
are deprecated:
'markers' is deprecated
'polylines' is deprecated
'groundOverlays' is deprecated
At first I thought it might be a problem on my side because there is no mention of this in Google's documentation, but then I saw the header file and noticed that they are in fact deprecated but they do not specify an alternate method to use in order to achieve the same thing:
- (NSArray *)markers __GMS_AVAILABLE_BUT_DEPRECATED;
- (NSArray *)groundOverlays __GMS_AVAILABLE_BUT_DEPRECATED;
- (NSArray *)polylines __GMS_AVAILABLE_BUT_DEPRECATED;
Can somebody point me to how to do this without using deprecated methods? Thanks!
EDIT: I just found a method where you can do [mapView clear]
which would remove all markers and polylines from the map, is there any way to only remove all polylines without removing markers?