目录

HPolygonView

Class Info

@interface HPolygonView : HOverlayPathView

Polygon view corresponding to HPolygon.

Public Constructor Summary

Constructor Name

(instancetype) - initWithPolygon:

Generates a polygon view based on the specified polygon.

Public Property Summary

Qualifier and Type

Property Name and Description

@property (nonatomic, copy) NSArray<NSNumber *> *

lineDashPattern

Dashed line pattern. When the style is HOverlayStrokeType_Dash, lineDashPattern is a sequence of solid lines and dotted lines. (The number of elements must be an even number.)

@property (nonatomic, assign) HOverlayStrokeType

lineType

Polygon stroke style. The default value is HOverlayStrokeType_Default.

@property (nonatomic, readonly) HPolygon *

polygon

Associated HPolygon object.

@property (nonatomic, assign) CGFloat

textureGap

Texture gap.

Public Constructors

[h2]initWithPolygon:

Constructor

- (instancetype)initWithPolygon:(HPolygon *)polygon

Generates a polygon view based on the specified polygon.

Parameters

Name

Description

polygon

Specified polygon.

Returns

Type

Description

instancetype

Generated polygon view.