Authored by Justin R. Miller

fixes #166: callout fixes for shapes & circles

... ... @@ -70,6 +70,8 @@
circlePath = NULL;
[self updateCirclePathAnimated:NO];
self.masksToBounds = NO;
return self;
}
... ...
... ... @@ -1472,6 +1472,22 @@
else
{
[self correctPositionOfAllAnnotationsIncludingInvisibles:NO animated:(_mapScrollViewIsZooming && !_mapScrollView.zooming)];
if (_currentAnnotation && ! [_currentAnnotation isKindOfClass:[RMMarker class]])
{
// adjust shape annotation callouts for frame changes during zoom
//
_currentCallout.delegate = nil;
[_currentCallout presentCalloutFromRect:_currentAnnotation.layer.bounds
inLayer:_currentAnnotation.layer
constrainedToLayer:self.layer
permittedArrowDirections:SMCalloutArrowDirectionDown
animated:NO];
_currentCallout.delegate = self;
}
_lastZoom = _zoom;
}
... ...
... ... @@ -85,7 +85,7 @@
previousBounds = CGRectZero;
lastScale = 0.0;
self.masksToBounds = YES;
self.masksToBounds = NO;
scaleLineWidth = NO;
scaleLineDash = NO;
... ...