-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMapAnnotation.h
30 lines (27 loc) · 938 Bytes
/
MapAnnotation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// MapAnnotation.h
// Benthos
//
// Created by Matthew Johnson-Roberson on 3/28/12.
// Copyright (c) 2012 SeafloorExplore Development. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@class BenthosModel;
@interface MapAnnotation : NSObject <MKAnnotation> {
NSString *title;
NSString *subtitle;
CLLocationCoordinate2D coordinate;
NSString *filenameWithoutExtension;
}
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
@property (nonatomic,retain) NSString *filenameWithoutExtension;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
// Title and subtitle for use by selection UI.
- (NSString *)title;
- (NSString *)subtitle;
-(id)initWithCoordinate:(CLLocationCoordinate2D) c;
-(id)initWithCoordinate:(CLLocationCoordinate2D)c withName:(NSString*)name withModel:(BenthosModel*)mol;
- (CLLocationCoordinate2D) coordinate;
@end