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.