Fixed bug in center coordinates
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -444,7 +444,8 @@ | @@ -444,7 +444,8 @@ | ||
444 | 444 | ||
445 | - (CLLocationCoordinate2D)centerCoordinates | 445 | - (CLLocationCoordinate2D)centerCoordinates |
446 | { | 446 | { |
447 | - return [contents pixelToLatLong:[self frame].origin]; | 447 | + CGPoint point = CGPointMake([self frame].size.width/2, [self frame].size.height/2); |
448 | + return [contents pixelToLatLong:point]; | ||
448 | } | 449 | } |
449 | 450 | ||
450 | 451 |
-
Please register or login to post a comment