0
我正在研究一個應用程序,我需要根據用戶運動不斷地在地圖上繪製路線。我已經尋找它,但力量得到任何滿意的解決方案。需要幫助!如何在地圖視圖中繪製路線當用戶不斷移動時
我正在研究一個應用程序,我需要根據用戶運動不斷地在地圖上繪製路線。我已經尋找它,但力量得到任何滿意的解決方案。需要幫助!如何在地圖視圖中繪製路線當用戶不斷移動時
看到這個鏈接的希望可能是有用的
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];
看看[蘋果麪包屑示例應用程序(https://developer.apple .COM /庫/ IOS /#samplecode /麪包屑/簡介/ Intro.html#// apple_ref/DOC/UID/DTS40010048)。 – Anna