A string is drawn using startPand endP, which are values CGPoint, but they are initialized using a theMapRectthat contains values MKMapPoint.
Instead, initialize them using the theRectone you convert from theMapRectusing rectForMapRect.
, MKRoadWidthAtZoomScale. 3.0 , .
:
CGPoint startP = {theRect.origin.x, theRect.origin.y};
CGPoint endP = {theRect.origin.x + theRect.size.width,
theRect.origin.y + theRect.size.height};
CGContextSetLineWidth(context, 3.0 * MKRoadWidthAtZoomScale(zoomScale));
, MKOverlayView, MKPolylineView, ?