目录

HTexturePolylineView

Class Info

@interface HTexturePolylineView : HPolylineView

Texture polyline view.

Public Method Summary

Qualifier and Type

Method Name and Description

void

eraseFromStartToCurrentPoint:searchFrom:toColor:

Grays the path color from the start point to the coordinate point.

Public Property Summary

Qualifier and Type

Property Name and Description

@property (nonatomic, assign, getter=isDrawSymbol) BOOL

drawSymbol

Indicates whether to draw an arrow symbol.

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

segmentColor

Segment color. If HTextureLineDrawType_ColorLine is valid, the segment color can be modified in real time. Currently, 15 different color pairs are supported.

Public Methods

[h2]eraseFromStartToCurrentPoint:searchFrom:toColor:

Method

- (void)eraseFromStartToCurrentPoint:(CLLocationCoordinate2D)coordinate searchFrom:(int)pointIndex toColor:(BOOL)clearColor

Grays the path color from the start point to the coordinate point. This method is valid for HTextureLineDrawType_SliceAsBackground and HTextureLineDrawType_ColorLine.

Parameters

Name

Description

coordinate

Coordinate point where erasing ends.

pointIndex

Index of the start point of the line segment where the end point is located.

clearColor

Indicates whether to erase the path color or gray it.

  • YES: Erases the path color. (This value is not supported currently.)
  • NO: Grays the path color.