GPKGMapPoint

Objective-C

@interface GPKGMapPoint : NSObject <MKAnnotation>

Swift

class GPKGMapPoint : NSObject, MKAnnotation

Map point annotation

  • Coordinate location

    Declaration

    Objective-C

    @property (nonatomic) CLLocationCoordinate2D coordinate;

    Swift

    var coordinate: CLLocationCoordinate2D { get set }
  • Title and subtitle

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *title;

    Swift

    var title: String! { get set }
  • Title and subtitle

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *subtitle;

    Swift

    var subtitle: String! { get set }
  • id

    Map Point unique id

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger id;

    Swift

    var id: UInt { get set }
  • Map point options

    Declaration

    Objective-C

    @property (nonatomic, strong) GPKGMapPointOptions *options;

    Swift

    var options: GPKGMapPointOptions! { get set }
  • Additional map point data stored with the point, any type of object may be stored

    Declaration

    Objective-C

    @property (nonatomic, strong) NSObject *data;

    Swift

    var data: NSObject! { get set }
  • Map annotation view

    Declaration

    Objective-C

    @property (nonatomic, strong) MKAnnotationView *view;

    Swift

    var view: MKAnnotationView! { get set }
  • Initialize with coordinate

    Declaration

    Objective-C

    - (id)initWithLocation:(CLLocationCoordinate2D)coord;

    Swift

    init!(location coord: CLLocationCoordinate2D)

    Parameters

    coord

    coordinate

    Return Value

    new map point

  • Initialize with lat and lon

    Declaration

    Objective-C

    - (id)initWithLatitude:(double)latitude andLongitude:(double)longitude;

    Swift

    init!(latitude: Double, andLongitude longitude: Double)

    Parameters

    latitude

    latitude

    longitude

    longitude

    Return Value

    new map point

  • Initialize with well-known binary point

    Declaration

    Objective-C

    - (id)initWithPoint:(SFPoint *)point;

    Swift

    init!(point: SFPoint!)

    Parameters

    point

    wkb point

    Return Value

    new map point

  • Initialize with MapKit map point

    Declaration

    Objective-C

    - (id)initWithMKMapPoint:(MKMapPoint)point;

    Swift

    init!(mkMapPoint point: MKMapPoint)

    Parameters

    point

    MK map point

    Return Value

    new map point

  • Get the id as a number

    Declaration

    Objective-C

    - (NSNumber *)idAsNumber;

    Swift

    func idAsNumber() -> NSNumber!

    Return Value

    number id

  • If the view has been set, change the hidden state

    Declaration

    Objective-C

    - (void)hidden:(BOOL)hidden;

    Swift

    func hidden(_ hidden: Bool)

    Parameters

    hidden

    true to make hidden, false to make visible