- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { if (!self.isDrawingPolygon) return; UITouch *touch = [touches anyObject]; CGPoint location = [touch locationInView:self.mapView]; CLLocationCoordinate2D coordinate = [self.mapView convertPoint:location toCoordinateFromView:self.mapView]; [self addCoordinate:coordinate replaceLastObject:YES]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)