Blame view

Pods/AMap3DMap/MAMapKit.framework/Headers/MAPolylineRenderer.h 1.48 KB
75d24c15   yangbin   123
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  //
  //  MAPolylineRenderer.h
  //  MAMapKit
  //
  //  
  //  Copyright (c) 2011 Amap. All rights reserved.
  //
  
  #import "MAConfig.h"
  #import <UIKit/UIKit.h>
  #import "MAPolyline.h"
  #import "MAOverlayPathRenderer.h"
  #import "MAPathShowRange.h"
  
  ///此类用于绘制MAPolyline,可以通过MAOverlayPathRenderer修改其fillstroke attributes
  @interface MAPolylineRenderer : MAOverlayPathRenderer
  
  ///关联的MAPolyline model
  @property (nonatomic, readonly) MAPolyline *polyline;
  
  ///设置是否显示3d箭头线, 默认为NO。如果设置为YES,则为3d箭头线。since 6.7.0
  @property (nonatomic, assign) BOOL is3DArrowLine;
  
  ///设置为立体3d箭头的侧边颜色(当is3DArrowLineYES时有效)顶部颜色使用strokeColorsince 6.7.0
  @property (nonatomic, strong) UIColor *sideColor;
  
  ///是否开启点击选中功能,默认NO. since 7.1.0
  @property (nonatomic, assign) BOOL userInteractionEnabled;
  
  ///用于调整点击选中热区大小,默认为0. 负值增大热区,正值减小热区. since 7.1.0
  @property (nonatomic, assign) CGFloat hitTestInset;
  
  ///是否启用显示范围,YES启用,不启用时展示全路径 since 7.5.0
  @property (nonatomic, assign) BOOL showRangeEnabled;
  
  ///显示范围 since 7.5.0
  @property (nonatomic, assign) MAPathShowRange showRange;
  
  /**
   * @brief 根据指定的MAPolyline生成一个多段线Renderer
   * @param polyline 指定MAPolyline
   * @return 新生成的多段线Renderer
   */
  - (instancetype)initWithPolyline:(MAPolyline *)polyline;
  
  @end