2016-09-22 18:03:05 +02:00
|
|
|
|
#import "RCTMapboxAnnotation.h"
|
|
|
|
|
|
|
2017-01-19 12:41:55 -08:00
|
|
|
|
#import <Mapbox/Mapbox.h>
|
2016-09-22 18:03:05 +02:00
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
2017-05-15 09:08:16 +02:00
|
|
|
|
#import <React/RCTConvert.h>
|
2017-02-07 03:06:45 -06:00
|
|
|
|
#import <React/RCTComponent.h>
|
2016-09-22 18:03:05 +02:00
|
|
|
|
#import "RCTMapboxGL.h"
|
|
|
|
|
|
|
|
|
|
|
|
@class RCTBridge;
|
|
|
|
|
|
|
|
|
|
|
|
@interface RCTMapboxAnnotation : MGLAnnotationView <MGLAnnotation>
|
|
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, weak, nullable) RCTMapboxGL *map;
|
|
|
|
|
|
@property (nonatomic, weak, nullable) RCTBridge *bridge;
|
|
|
|
|
|
/**
|
|
|
|
|
|
The center point (specified as a map coordinate) of the annotation. (required)
|
|
|
|
|
|
(read-only)
|
|
|
|
|
|
*/
|
|
|
|
|
|
@property (nonatomic) CLLocationCoordinate2D coordinate;
|
|
|
|
|
|
|
2016-09-27 12:16:55 +02:00
|
|
|
|
/**
|
|
|
|
|
|
The string containing the annotation’s title.
|
|
|
|
|
|
|
|
|
|
|
|
Although this property is optional, if you support the selection of annotations
|
|
|
|
|
|
in your map view, you are expected to provide this property. This string is
|
|
|
|
|
|
displayed in the callout for the associated annotation.
|
|
|
|
|
|
*/
|
|
|
|
|
|
@property (nonatomic, copy, nullable) NSString *id;
|
|
|
|
|
|
|
2016-09-22 18:03:05 +02:00
|
|
|
|
/**
|
|
|
|
|
|
The string containing the annotation’s title.
|
|
|
|
|
|
|
|
|
|
|
|
Although this property is optional, if you support the selection of annotations
|
|
|
|
|
|
in your map view, you are expected to provide this property. This string is
|
|
|
|
|
|
displayed in the callout for the associated annotation.
|
|
|
|
|
|
*/
|
|
|
|
|
|
@property (nonatomic, copy, nullable) NSString *title;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
The string containing the annotation’s subtitle.
|
|
|
|
|
|
|
|
|
|
|
|
This string is displayed in the callout for the associated annotation.
|
|
|
|
|
|
*/
|
|
|
|
|
|
@property (nonatomic, copy, nullable) NSString *subtitle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|