Inherits from RMShapeAnnotation : RMAnnotation : NSObject
Declared in RMCircleAnnotation.h

Overview

An RMCircleAnnotation is a concrete subclass of RMShapeAnnotation that is used to represent a circle shape on the map. The annotation will automatically have a layer created when needed that displays an RMCircle.

If you wish to customize the layer appearance in more detail, you should instead create an RMAnnotation and configure its layer directly. Providing a layer manually for instances of RMCircleAnnotation will not have any effect.

Properties

centerCoordinate

The circle annotation’s center coordinate.

@property (nonatomic, assign) CLLocationCoordinate2D centerCoordinate

Discussion

The circle annotation’s center coordinate.

Declared In

RMCircleAnnotation.h

lineWidthInPixels

The circle annotation’s line width.

@property (nonatomic, assign) CGFloat lineWidthInPixels

Discussion

The circle annotation’s line width.

Declared In

RMCircleAnnotation.h

radiusInMeters

The radius of the circle annotation 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 annotation in projected meters. Regardless of map zoom, the circle will change visible size to continously represent this radius on the map.

Declared In

RMCircleAnnotation.h

Instance Methods

initWithMapView:centerCoordinate:radiusInMeters:

Initialize a circle annotation.

- (id)initWithMapView:(RMMapView *)aMapView centerCoordinate:(CLLocationCoordinate2D)centerCoordinate radiusInMeters:(CGFloat)radiusInMeters

Parameters

aMapView

The map view on which to place the annotation.

centerCoordinate

The center of the annotation.

radiusInMeters

The radius of the circle in projected meters.

Return Value

An initialized circle annotation object, or nil if an annotation was unable to be initialized.

Discussion

Initialize a circle annotation.

Declared In

RMCircleAnnotation.h