AMapPolygon.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // AMapPolygon.h
  3. // amap_flutter_map
  4. //
  5. // Created by lly on 2020/11/12.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <MAMapKit/MAMapKit.h>
  9. #import <CoreLocation/CoreLocation.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface AMapPolygon : NSObject{
  12. /// 覆盖物的坐标点数组,key为@"points"
  13. CLLocationCoordinate2D *_coords;//坐标的数组指针
  14. NSUInteger _coordCount;//坐标的个数
  15. }
  16. @property (nonatomic, copy) NSString *id_;
  17. /// 边框宽度
  18. @property (nonatomic, assign) CGFloat strokeWidth;
  19. /// 边框颜色
  20. @property (nonatomic, strong) UIColor *strokeColor;
  21. /// 填充颜色
  22. @property (nonatomic, strong) UIColor *fillColor;
  23. /// 是否可见
  24. @property (nonatomic, assign) bool visible;
  25. /// 连接点类型
  26. @property (nonatomic, assign) MALineJoinType joinType;
  27. /// 由以上数据生成的polyline对象
  28. @property (nonatomic, strong,readonly) MAPolygon *polygon;
  29. - (void)updatePolygon:(AMapPolygon *)polygon;
  30. @end
  31. NS_ASSUME_NONNULL_END