OCMapView 1.0
Simple and easy to use clustering mapView.
/Users/Boti/Documents/coding/iPhone Development/OCMapView+Sample/OCMapView/OCAnnotation.h
Go to the documentation of this file.
00001 //
00002 //  OCAnnotation.h
00003 //  openClusterMapView
00004 //
00005 //  Created by Botond Kis on 14.07.11.
00006 //
00007 
00008 #import <UIKit/UIKit.h>
00009 #import <MapKit/MapKit.h>
00010 #import "OCGrouping.h"
00011 
00013 
00017 @interface OCAnnotation : NSObject <MKAnnotation, OCGrouping>{
00018     NSMutableArray *annotationsInCluster;
00019     NSString *title;
00020     NSString *subtitle;
00021     NSString *_groupTag;
00022     CLLocationCoordinate2D coordinate;
00023 }
00024 //
00025 // Constructors
00027 - (id)init;
00028 
00030 
00031 - (id)initWithAnnotation:(id <MKAnnotation>) annotation;
00032 
00033 //
00035 
00038 @property(nonatomic, readonly) NSArray *annotationsInCluster;
00039 //
00041 
00042 - (NSArray *)annotationsInCluster;
00043 
00044 //
00045 // manipulate cluster
00047 
00048 - (void)addAnnotation:(id < MKAnnotation >)annotation;
00049 
00051 
00053 - (void)addAnnotations:(NSArray *)annotations;
00054 
00056 
00057 - (void)removeAnnotation:(id < MKAnnotation >)annotation;
00058 
00060 
00061 - (void)removeAnnotations:(NSArray *)annotations;
00062 
00063 //
00064 // protocol implementation
00066 - (NSString *)title;
00068 - (void)setTitle:(NSString *)text;
00069 
00070 
00072 - (NSString *)subtitle;
00074 - (void)setSubtitle:(NSString *)text;
00075 
00077 - (NSString *)groupTag;
00079 - (void)setGroupTag:(NSString *)tag;
00080 
00082 - (CLLocationCoordinate2D)coordinate;
00084 - (void)setCoordinate:(CLLocationCoordinate2D)coord;
00085 
00086 @end
 All Data Structures Files Functions Variables Enumerations Enumerator Properties