简体   繁体   中英

How to draw route in map view While user continously moving

I am working on an App where I need to draw the route on the Map based on user motion, continuously. I've searched for it but dint get any satisfactory solution. Need help on this !

see this link hope might be useful

https://github.com/kadirpekel/MapWithRoutes

or use this code

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];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM