ResizableMKCircleOverlay

A resizable map overlay.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

80

Maintenance

Last Commit

5yrs ago

Contributors

4

Package

Dependencies

0

License

Apache

Categories

Readme

alt text

ResizableMKCircleOverlay

A resizable map circle overlay.

Objective:

Have a resizable circle overlay, without recreating an MKCircle object.

How to use:

CustomMapOverlay is a subclass of MKCircleView. In your map controller override 'viewForOverlay with the custom class.

- (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id < MKOverlay >)overlay{
    circleView = [[CustomMKCircleOverlay alloc] initWithCircle:overlay];
    circleView.fillColor = [UIColor redColor];
    
    return circleView;
}
Initilize

-(id)initWithCircle:(MKCircle *) circle withRadius:(double)radius withMin:(int) min withMax:(int) max;
-(id)initWithCircle:(MKCircle *) circle withRadius:(double)radius;
-(id)initWithCircle:(MKCircle *) circle;

-radius is always in meters
-min/max will set a min and max size for the circle (also meters).

UpdateCircle

-(void)setCircleRadius:radius; - set the circle radius.
-(void)setFillColor:UIColor; - set the circle Color.

@property(nonatomic) CGFloat alpha; //Default = .3
@property(nonatomic) CGFloat border; //Default = 15

This class alone does not handle Gestures so you will need to implement that on your own or take a look at the example project. The example project uses 'WildcardGestureRecognizer' to detect if the overlay was touched.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100