Authored by Foobaz

Fix crash & compiler warnings, enable rotation on RMMarker.

... ... @@ -185,6 +185,6 @@ typedef struct {
- (void)didReceiveMemoryWarning;
- (void)setRotation:(float)angle;
- (void)setRotation:(CGFloat)angle;
@end
... ...
... ... @@ -597,7 +597,7 @@
}
}
- (void)setRotation:(float)angle
- (void)setRotation:(CGFloat)angle
{
if (_delegateHasBeforeMapRotate) [delegate beforeMapRotate: self fromAngle: rotation];
... ...
... ... @@ -54,7 +54,7 @@
textForegroundColor = [UIColor blackColor];
textBackgroundColor = [UIColor clearColor];
enableDragging = YES;
enableRotation = NO;
enableRotation = YES;
}
return self;
}
... ...
... ... @@ -65,6 +65,7 @@
-(void) dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc];
}
... ...