2013-12-14 85 views
0

如何在谷歌地圖上多角化多段線?適用於iOS的Google Maps SDK - 多段線

現在我做這樣的文檔中:

GMSMutablePath *path = [GMSMutablePath path]; 
[path addCoordinate:CLLocationCoordinate2DMake(37.36, -122.0)]; 
[path addCoordinate:CLLocationCoordinate2DMake(37.45, -122.0)]; 
[path addCoordinate:CLLocationCoordinate2DMake(37.45, -122.2)]; 
[path addCoordinate:CLLocationCoordinate2DMake(37.36, -122.2)]; 
[path addCoordinate:CLLocationCoordinate2DMake(37.36, -122.0)]; 

GMSPolyline *polyline = [GMSPolyline polylineWithPath:path]; 
polyline.strokeColor = [UIColor greenColor]; 
polyline.strokeWidth = 10.f; 
polyline.geodesic = YES; 

polyline.map = mapView_; 

但我需要給線有一定的影響(比如光暈效果)。

如何實現這一點?

謝謝

+0

你可以檢查一下,以幫助我http://stackoverflow.com/q/40150430/252260 – ChenSmile

回答