Authored by Obrand69

As RMMarkerManager was not in the target, I added a method to overcome an import…

… that could not been resolved. As Joseph has fixed it, I have removed the unnecessary method.
@@ -124,7 +124,6 @@ enum { @@ -124,7 +124,6 @@ enum {
124 - (void)zoomWithLatLngBoundsNorthEast:(CLLocationCoordinate2D)ne SouthWest:(CLLocationCoordinate2D)se; 124 - (void)zoomWithLatLngBoundsNorthEast:(CLLocationCoordinate2D)ne SouthWest:(CLLocationCoordinate2D)se;
125 - (void)zoomWithRMMercatorRectBounds:(RMXYRect)bounds; 125 - (void)zoomWithRMMercatorRectBounds:(RMXYRect)bounds;
126 126
127 -- (RMXYPoint)latLongToPoint:(RMLatLong)aLatLong;  
128 - (CLLocationCoordinate2DBounds) getScreenCoordinateBounds; 127 - (CLLocationCoordinate2DBounds) getScreenCoordinateBounds;
129 128
130 129
@@ -561,11 +561,6 @@ static BOOL _performExpensiveOperations = YES; @@ -561,11 +561,6 @@ static BOOL _performExpensiveOperations = YES;
561 561
562 // Move overlays stuff here - at the moment overlay stuff is above... 562 // Move overlays stuff here - at the moment overlay stuff is above...
563 563
564 -- (RMXYPoint)latLongToPoint:(RMLatLong)aLatLong  
565 -{  
566 - return [projection latLongToPoint:aLatLong];  
567 -}  
568 -  
569 - (CLLocationCoordinate2DBounds) getScreenCoordinateBounds 564 - (CLLocationCoordinate2DBounds) getScreenCoordinateBounds
570 { 565 {
571 CLLocationCoordinate2DBounds bounds; 566 CLLocationCoordinate2DBounds bounds;
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 8
9 #import "RMMarkerManager.h" 9 #import "RMMarkerManager.h"
10 #import "RMMercatorToScreenProjection.h" 10 #import "RMMercatorToScreenProjection.h"
  11 +#import "RMProjection.h"
11 12
12 @implementation RMMarkerManager 13 @implementation RMMarkerManager
13 14
@@ -30,7 +31,7 @@ @@ -30,7 +31,7 @@
30 31
31 - (void) addMarker: (RMMarker*)marker AtLatLong:(CLLocationCoordinate2D)point 32 - (void) addMarker: (RMMarker*)marker AtLatLong:(CLLocationCoordinate2D)point
32 { 33 {
33 - [marker setLocation:[contents latLongToPoint:point]]; 34 + [marker setLocation:[[contents projection]latLongToPoint:point]];
34 [self addMarker: marker]; 35 [self addMarker: marker];
35 } 36 }
36 37