1

We are experimenting with the new google maps API for iOS and we need to be able to add overlays similar to what MKOverlay does in Apple's MapKit.

friedbunny
  • 2,421
  • 1
  • 23
  • 38
kyleplattner
  • 633
  • 1
  • 6
  • 16

1 Answers1

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