MRPathOverlay Class Reference
Inherits from | NSObject |
---|---|
Declared in | MRPathOverlay.h |
Overview
An object containing the shape desired to be rendered on the map surface. Use the MRPathRenderer to modify the drawing properties of the path.
– initWithPath:
Creates an overlay object with the given path. The CGPath should be in the map coordinate system.
- (instancetype)initWithPath:(CGPathRef _Nullable)path
Parameters
path |
A CGPath to be drawn |
---|
Declared In
MRPathOverlay.h
– initWithPolylineOfPoints:
Convenience method for creating a series of connected line segments consisting of one or more points.
- (instancetype)initWithPolylineOfPoints:(NSArray<NSValue*> *)points
Parameters
points |
An array of CGPoints wrapped in NSValue |
---|
Declared In
MRPathOverlay.h
– initWithPolygonOfPoints:
Convenience method for creating a closed polygon consisting of one or more points.
- (instancetype)initWithPolygonOfPoints:(NSArray<NSValue*> *)points
Parameters
points |
An array of CGPoints wrapped in NSValue |
---|
Declared In
MRPathOverlay.h
– initWithCircleOfCenter:radius:
Convenience method for creating a circular shape.
- (instancetype)initWithCircleOfCenter:(CGPoint)center radius:(CGFloat)radius
Parameters
center |
The center of the circle |
---|---|
radius |
The radius of the circle |
Declared In
MRPathOverlay.h
– initWithPlacemark:
Convenience method for creating a shape based upon the placemark’s point region
- (instancetype)initWithPlacemark:(MRPlacemark *)placemark
Parameters
placemark |
The placemark |
---|
Declared In
MRPathOverlay.h
– pointInOverlay:tolerance:
Test whether the point can be reasonably determined to be a hit
- (BOOL)pointInOverlay:(CGPoint)point tolerance:(float)tol
Parameters
point |
The point to be tested |
---|---|
tol |
The tolerance in mapCoordinates used to expand the touch region |
Declared In
MRPathOverlay.h
path
The shape to be drawn.
@property (nullable, nonatomic, readonly) CGPathRef path
Declared In
MRPathOverlay.h
userInteractionEnabled
The user interaction state
@property (readwrite) BOOL userInteractionEnabled
Declared In
MRPathOverlay.h