|
@@ -625,12 +625,7 @@ static BOOL _performExpensiveOperations = YES; |
|
@@ -625,12 +625,7 @@ static BOOL _performExpensiveOperations = YES; |
625
|
if(delegateHasRegionUpdate)
|
625
|
if(delegateHasRegionUpdate)
|
626
|
{
|
626
|
{
|
627
|
RMLatLongBounds locationBounds = [self getCoordinateBounds:region];
|
627
|
RMLatLongBounds locationBounds = [self getCoordinateBounds:region];
|
628
|
- NSLog(@"===> AFTER CONVERSION - BOUNDS: NW Lat: %lf NW Lon:%lf SW Lat:%lf SW Lon:%lf",
|
|
|
629
|
- locationBounds.northWest.latitude,locationBounds.northWest.longitude,
|
|
|
630
|
- locationBounds.southEast.latitude, locationBounds.southEast.longitude);
|
|
|
631
|
-
|
|
|
632
|
- [tilesUpdateDelegate regionUpdate:locationBounds.northWest.latitude NWLon:locationBounds.northWest.longitude
|
|
|
633
|
- SELat:locationBounds.southEast.latitude SELon:locationBounds.southEast.longitude];
|
628
|
+ [tilesUpdateDelegate regionUpdate:locationBounds];
|
634
|
}
|
629
|
}
|
635
|
}
|
630
|
}
|
636
|
- (void) printDebuggingInformation
|
631
|
- (void) printDebuggingInformation
|
|
@@ -644,8 +639,8 @@ static BOOL _performExpensiveOperations = YES; |
|
@@ -644,8 +639,8 @@ static BOOL _performExpensiveOperations = YES; |
644
|
{
|
639
|
{
|
645
|
if (tilesUpdateDelegate == _tilesUpdateDelegate) return;
|
640
|
if (tilesUpdateDelegate == _tilesUpdateDelegate) return;
|
646
|
tilesUpdateDelegate= _tilesUpdateDelegate;
|
641
|
tilesUpdateDelegate= _tilesUpdateDelegate;
|
647
|
-
|
|
|
648
|
- delegateHasRegionUpdate = [(NSObject*) tilesUpdateDelegate respondsToSelector: @selector(regionUpdate: NWLon: SELat: SELon:)];
|
642
|
+ //NSLog(@"Delegate type:%@",[(NSObject *) tilesUpdateDelegate description]);
|
|
|
643
|
+ delegateHasRegionUpdate = [(NSObject*) tilesUpdateDelegate respondsToSelector: @selector(regionUpdate:)];
|
649
|
}
|
644
|
}
|
650
|
|
645
|
|
651
|
- (id<RMTilesUpdateDelegate>) tilesUpdateDelegate
|
646
|
- (id<RMTilesUpdateDelegate>) tilesUpdateDelegate
|