0

我正在开发一个应用程序,我需要根据用户动作在地图上连续绘制路线。我已经搜索过了,但没有得到任何令人满意的解决方案。在这方面需要帮助!

4

1 回答 1

-1

看到这个链接希望可能有用

https://github.com/kadirpekel/MapWithRoutes

或使用此代码

NSArray *points = [NSArray arrayWithObjects: [[[CLLocation alloc] initWithLatitude:location.latitude longitude:location.longitude] autorelease],nil]; NVPolylineAnnotation *annotation = [[[NVPolylineAnnotation alloc] initWithPoints:points mapView:map] autorelease]; [map addAnnotation:annotation]; [loc release];

于 2013-08-08T11:05:57.623 回答