Google Maps for iOS, swift - How to show entire polyline between markers?
问题 I am trying to fit a polyline in the google map view. The polyline was acquired through overview_polyline in the google maps directions api. Wondering how I would be able to convert an encoded polyline into something that can be worked with. I need to fit the polyline in the map view. All i have found out to do is fit the bounds to show all markers but not showcase the entire polyline. func fitAllMarkers() { var bounds = GMSCoordinateBounds() for marker in markers { bounds = bounds