SKAnnotation Class Reference

Inherits from NSObject
Declared in SKAnnotation.h

Overview

The SKAnnotation is used for presenting annotations visually on the map view. The image of the annotation can be either a predefined one (using annotationType property) or a custom one (using imagePath and imageSize properties).

  identifier

A unique identifier for the annotation.

@property (nonatomic, assign) int identifier

Discussion

A unique identifier for the annotation.

Declared In

SKAnnotation.h

  annotationType

The annotation type from a predefined list. The default value is SKAnnotationTypeBlue.

@property (nonatomic, assign) SKAnnotationType annotationType

Discussion

The annotation type from a predefined list. The default value is SKAnnotationTypeBlue.

Declared In

SKAnnotation.h

  offset

Used for positioning the annotation image around the location. By default, the center of the image will coincide with the location. The offset is in points.

@property (nonatomic, assign) CGPoint offset

Discussion

Used for positioning the annotation image around the location. By default, the center of the image will coincide with the location. The offset is in points.

Declared In

SKAnnotation.h

  location

The coordinate where the annotation should be added.

@property (nonatomic, assign) CLLocationCoordinate2D location

Discussion

The coordinate where the annotation should be added.

Declared In

SKAnnotation.h

  minZoomLevel

The minimum zoom level on which the annotation will be visible.

@property (nonatomic, assign) int minZoomLevel

Discussion

The minimum zoom level on which the annotation will be visible.

Declared In

SKAnnotation.h

  annotationView

Object containing a UIView which will represent the annotation image.

@property (nonatomic) SKAnnotationView *annotationView

Discussion

Object containing a UIView which will represent the annotation image.

Declared In

SKAnnotation.h

+ annotation

A newly initialized SKAnnotation.

+ (instancetype)annotation

Discussion

A newly initialized SKAnnotation.

Declared In

SKAnnotation.h