GPKGMapPointOptions

Objective-C

@interface GPKGMapPointOptions : NSObject <NSMutableCopying>

Swift

class GPKGMapPointOptions : NSObject, NSMutableCopying

Map Point options including style and atributes

  • Pin tint color

    Declaration

    Objective-C

    @property (nonatomic) int *pinTintColor;

    Swift

    var pinTintColor: CIColor! { get set }
  • Deprecated

    Use pinTintColor instead

    Standard pin annotation color @deprecated within MKPinAnnotationView, use pinTintColor instead

    Declaration

    Objective-C

    @property (nonatomic) MKPinAnnotationColor pinColor;

    Swift

    var pinColor: MKPinAnnotationColor { get set }
  • Icon image, replacing the use of a pin color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *image

    Swift

    var image: CIImage! { get set }
  • Image center offset when drawing the image icon

    Declaration

    Objective-C

    @property (nonatomic) CGPoint imageCenterOffset;

    Swift

    var imageCenterOffset: CGPoint { get set }
  • True if the icon is draggable

    Declaration

    Objective-C

    @property (nonatomic) BOOL draggable;

    Swift

    var draggable: Bool { get set }
  • Map point initializer for callbacks

    Declaration

    Objective-C

    @property (nonatomic, strong) NSObject<GPKGMapPointInitializer> *initializer;

    Swift

    var initializer: (any GPKGMapPointInitializer)! { get set }
  • Initialize

    Declaration

    Objective-C

    - (id)init;

    Swift

    init!()

    Return Value

    new map point options

  • Pin the image so the middle bottom of the image is drawn at the location

    Declaration

    Objective-C

    - (void)pinImage;

    Swift

    func pinImage()
  • Center the image so it is drawn with the center at the location

    Declaration

    Objective-C

    - (void)centerImage;

    Swift

    func centerImage()
  • Set the image so that is drawn according to the anchor values

    Declaration

    Objective-C

    - (void)anchorWithU:(double)anchorU andV:(double)anchorV;

    Swift

    func anchor(withU anchorU: Double, andV anchorV: Double)

    Parameters

    anchorU

    UV Mapping horizontal anchor distance inclusively between 0.0 and 1.0 from the left edge, when null assume 0.5 (middle of icon)

    anchorV

    UV Mapping vertical anchor distance inclusively between 0.0 and 1.0 from the top edge, when null assume 1.0 (bottom of icon)