30 lines
756 B
Objective-C
30 lines
756 B
Objective-C
//
|
|
// EQNMapAnnotationSeismic.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 EQNMapAnnotationSeismicIdentifier = @"EQNMapAnnotationSeismicIdentifier";
|
|
|
|
|
|
@interface EQNMapAnnotationSeismic : NSObject <MKAnnotation>
|
|
|
|
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
|
|
@property (nonatomic, copy) NSString *title;
|
|
@property (nonatomic, readonly) double magnitude;
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title location:(CLLocationCoordinate2D)coordinate intensita:(double)magnitude;
|
|
|
|
- (MKAnnotationView *)annotationView;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|