RMGreatCircleAnnotation Class Reference
Inherits from | RMShapeAnnotation : RMAnnotation : NSObject |
Declared in | RMGreatCircleAnnotation.h |
Overview
An RMGreatCircleAnnotation class represents a line shape that traces the shortest path along the surface of the Earth. You specify a great circle (also known as a geodesic polyline) using a pair of points. When displayed on a two-dimensional map view, the line segment between the two points may appear curved.
Properties
Instance Methods
initWithMapView:coordinate1:coordinate2:
Initialize a great circle annotation using the specified coordinates.
- (id)initWithMapView:(RMMapView *)aMapView coordinate1:(CLLocationCoordinate2D)coordinate1 coordinate2:(CLLocationCoordinate2D)coordinate2
Parameters
- aMapView
The map view on which to place the annotation.
- coordinate1
The starting coordinate.
- coordinate2
The ending coordinate.
Return Value
An initialized great circle annotation object, or nil
if an annotation was unable to be initialized.
Discussion
Initialize a great circle annotation using the specified coordinates.
Declared In
RMGreatCircleAnnotation.h