回答

0
 let poly = GMSMutablePath() 

    poly .addCoordinate(CLLocationCoordinate2DMake(newLocation.coordinate.latitude, newLocation.coordinate.longitude)) 

    let polygon = GMSPolygon() 
     polygon .path = poly 
    polygon.fillColor = UIColor.greenColor() 

    polygon.strokeWidth = 4 
    polygon.strokeColor = UIColor .redColor() 
    polygon.map = self.mapView