SKPolygon Class Reference

Inherits from SKOverlay : NSObject
Declared in SKPolygon.h

Overview

SKPolygon stores the information related to a map polygon overlay. This object is used as an input parameter.

  coordinates

An array of CLLocation objects. Each location represents a vertex of the polygon. The first and the last vertices will be linked.

@property (nonatomic, copy) NSArray *coordinates

Discussion

An array of CLLocation objects. Each location represents a vertex of the polygon. The first and the last vertices will be linked.

Declared In

SKPolygon.h

  borderWidth

The width of the border. Should be a value in [ 1, 10 ] interval.

@property (nonatomic, assign) NSInteger borderWidth

Discussion

The width of the border. Should be a value in [ 1, 10 ] interval.

Declared In

SKPolygon.h

  isMask

If YES, the outer area will be colored according to the rest of the settings.

@property (nonatomic, assign) BOOL isMask

Discussion

If YES, the outer area will be colored according to the rest of the settings.

Declared In

SKPolygon.h

  maskedObjectScale

Scale of the outer mask. Multiplies the radius value of the circle. If set to 0, the entire map will be colored.

@property (nonatomic, assign) float maskedObjectScale

Discussion

Scale of the outer mask. Multiplies the radius value of the circle. If set to 0, the entire map will be colored.

Declared In

SKPolygon.h

+ polygon

Creates a newly initialized SKPolygon object.

+ (instancetype)polygon

Discussion

Creates a newly initialized SKPolygon object.

Declared In

SKPolygon.h