30 lines
791 B
Objective-C
30 lines
791 B
Objective-C
//
|
|
// EQNMapAnnotationSeismicNetwork.h
|
|
// Earthquake Network
|
|
//
|
|
// Refactored by Andrea Busi
|
|
// Copyright © 2021 Earthquake Network. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <MapKit/MapKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
static NSString * const EQNMapAnnotationSeismicNetworkIdentifier = @"EQNMapAnnotationSeismicNetworkIdentifier";
|
|
|
|
|
|
@interface EQNMapAnnotationSeismicNetwork : NSObject <MKAnnotation>
|
|
|
|
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
@property (nonatomic, copy) NSString *title;
|
|
@property (nonatomic, readonly) NSInteger magnitude;
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title location:(CLLocationCoordinate2D )coordinate magnitudo:(NSInteger)magnitude;
|
|
|
|
- (MKAnnotationView *)annotationView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|