I have found the below for drawing a path during a run/walk with Apple Maps
extension NewRunViewController: MKMapViewDelegate {
func mapView(mapView: MKMapView!, rendererForOverlay overlay: MKOverlay!) -> MKOverlayRenderer! {
if !overlay.isKindOfClass(MKPolyline) {
return nil
}
let polyline = overlay as! MKPolyline
let renderer = MKPolylineRenderer(polyline: polyline)
renderer.strokeColor = UIColor.blueColor()
renderer.lineWidth = 3
return renderer
}
}
However I am trying to do it with Google Maps and can't find the solution. Lots and lots of answers are for Apple Maps, but not much on Google Maps.
Try this