Point touch with zoom mapView
Hi, i'm trying catch a coordinate from touch event, i can catch but when give zoom have big numbers and when i put this in function newCoord = [mapView convertPoint:location toCoordinateFromView:mapView], get wrong coordinates, what can i do?
My code:
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:touch.view];
NSLog(@"locationTOUCH:%f,%f", location.x,location.y);
CLLocationCoordinate2D newCoord;
newCoord = [mapView convertPoint:location toCoordinateFromView:mapView];
NSLog(@"coordinate-%f,%f", newCoord.latitude,newCoord.longitude);
|