RMCircle Class Reference
Inherits from | RMMapLayer : CAScrollLayer |
Declared in | RMCircle.h |
Overview
An RMCircle is used to represent a perfect circle shape on a map view. An RMCircle changes visible size in response to map zooms in order to consistently represent coverage of the same geographic area.
Tasks
Accessing Drawing Properties
-
shapeLayer
property -
lineColor
property -
fillColor
property -
fillPatternImage
property -
radiusInMeters
property -
lineWidthInPixels
property
Creating Circle Objects
Properties
fillColor
The circle’s fill color. Defaults to blue with a 25% alpha value.
@property (nonatomic, strong) UIColor *fillColor
Discussion
The circle’s fill color. Defaults to blue with a 25% alpha value.
Declared In
RMCircle.h
fillPatternImage
The fill pattern image of the circle. If set, the fillColor is set to nil
.
@property (nonatomic, strong) UIImage *fillPatternImage
Discussion
The fill pattern image of the circle. If set, the fillColor is set to nil
.
Declared In
RMCircle.h
lineColor
The circle’s line color. Defaults to black.
@property (nonatomic, strong) UIColor *lineColor
Discussion
The circle’s line color. Defaults to black.
Declared In
RMCircle.h
lineWidthInPixels
The circle’s line width. Defaults to 2.0.
@property (nonatomic, assign) CGFloat lineWidthInPixels
Discussion
The circle’s line width. Defaults to 2.0.
Declared In
RMCircle.h
radiusInMeters
The radius of the circle in projected meters. Regardless of map zoom, the circle will change visible size to continously represent this radius on the map.
@property (nonatomic, assign) CGFloat radiusInMeters
Discussion
The radius of the circle in projected meters. Regardless of map zoom, the circle will change visible size to continously represent this radius on the map.
Declared In
RMCircle.h
Instance Methods
initWithView:radiusInMeters:
Initializes and returns a newly allocated RMCircle for the specified map view.
- (id)initWithView:(RMMapView *)aMapView radiusInMeters:(CGFloat)newRadiusInMeters
Parameters
- aMapView
The map view the shape should be drawn on.
- newRadiusInMeters
The radius of the circle object in projected meters. Regardless of map zoom, the circle will change visible size to continously represent this radius on the map.
Discussion
Initializes and returns a newly allocated RMCircle for the specified map view.
Declared In
RMCircle.h