AMapPolyline.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // AMapPolyline.h
  3. // amap_flutter_map
  4. //
  5. // Created by lly on 2020/11/6.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <MAMapKit/MAMapKit.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. #import "HSTCusPolyline.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface AMapPolyline : NSObject {
  13. /// 覆盖物的坐标点数组,key为@"points"
  14. CLLocationCoordinate2D *_coords;//坐标的数组指针
  15. NSUInteger _coordCount;//坐标的个数
  16. }
  17. @property (nonatomic, copy) NSString *id_;
  18. /// 线宽
  19. @property (nonatomic, assign) CGFloat width;
  20. /// 覆盖物颜色,默认值为(0xCCC4E0F0).
  21. @property (nonatomic, strong) UIColor *color;
  22. /// 是否可见
  23. @property (nonatomic, assign) bool visible;
  24. /// 透明度
  25. @property (nonatomic, assign) CGFloat alpha;
  26. /// 自定义纹理图片
  27. @property (nonatomic, copy) NSArray *customTexture;
  28. /// 由customTexture解析生成的图片
  29. @property (nonatomic, strong) UIImage *strokeImage;
  30. /// 是否为大地曲线
  31. @property (nonatomic, assign) BOOL geodesic;
  32. /// 虚线类型
  33. @property (nonatomic, assign) MALineDashType dashLineType;
  34. /// 连接点类型
  35. @property (nonatomic, assign) MALineJoinType joinType;
  36. /// 线头类型
  37. @property (nonatomic, assign) MALineCapType capType;
  38. /// 由以上数据生成的polyline对象
  39. @property (nonatomic, strong, readonly) HSTCusPolyline *polyline;
  40. @property (nonatomic, copy) NSArray<NSNumber*> *colorList;
  41. //更新polyline
  42. - (void)updatePolyline:(AMapPolyline *)polyline;
  43. @end
  44. NS_ASSUME_NONNULL_END