MAUserLocationRepresentation.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // MAUserLocationRepresentation.h
  3. // MAMapKit
  4. //
  5. // Created by shaobin on 16/12/27.
  6. // Copyright © 2016年 Amap. All rights reserved.
  7. //
  8. #import "MAConfig.h"
  9. #import <Foundation/Foundation.h>
  10. #import <UIKit/UIKit.h>
  11. #define kAccuracyCircleDefaultColor [UIColor colorWithRed:136/255.0 green:166/255.0 blue:227/255.0 alpha:.3]
  12. ///用户位置显示样式控制
  13. @interface MAUserLocationRepresentation : NSObject
  14. ///精度圈是否显示,默认YES
  15. @property (nonatomic, assign) BOOL showsAccuracyRing;
  16. ///是否显示方向指示(MAUserTrackingModeFollowWithHeading模式开启)。默认为YES
  17. @property (nonatomic, assign) BOOL showsHeadingIndicator;
  18. ///精度圈 填充颜色, 默认 kAccuracyCircleDefaultColor
  19. @property (nonatomic, strong) UIColor *fillColor;
  20. ///精度圈 边线颜色, 默认 kAccuracyCircleDefaultColor
  21. @property (nonatomic, strong) UIColor *strokeColor;
  22. ///精度圈 边线宽度,默认0
  23. @property (nonatomic, assign) CGFloat lineWidth;
  24. ///定位点背景色,不设置默认白色
  25. @property (nonatomic, strong) UIColor *locationDotBgColor;
  26. ///定位点蓝色圆点颜色,不设置默认蓝色
  27. @property (nonatomic, strong) UIColor *locationDotFillColor;
  28. ///内部蓝色圆点是否使用律动效果, 默认YES
  29. @property (nonatomic, assign) BOOL enablePulseAnnimation;
  30. ///定位图标, 与蓝色原点互斥
  31. @property (nonatomic, strong) UIImage* image;
  32. @end