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.
Asked
Active
Viewed 209 times
1 Answers
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

Syed Mutahir
- 1
- 1