MAGeodesicPolyline.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // MAGeodesicPolyline.h
  3. // MapKit_static
  4. //
  5. // Created by songjian on 13-10-23.
  6. // Copyright © 2016 Amap. All rights reserved.
  7. #import "MAConfig.h"
  8. #if MA_INCLUDE_OVERLAY_GEODESIC
  9. #import "MAPolyline.h"
  10. ///大地曲线
  11. @interface MAGeodesicPolyline : MAPolyline
  12. /**
  13. * @brief 根据MAMapPoints生成大地曲线
  14. * @param points MAMapPoint点
  15. * @param count 点的个数
  16. * @return 生成的大地曲线
  17. */
  18. + (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
  19. /**
  20. * @brief 根据经纬度生成大地曲线
  21. * @param coords 经纬度
  22. * @param count 点的个数
  23. * @return 生成的大地曲线
  24. */
  25. + (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
  26. /**
  27. * @brief 重新设置坐标点. since 5.0.0
  28. * @param points 指定的直角坐标点数组,C数组,内部会做copy,调用者负责内存管理。
  29. * @param count 坐标点的个数
  30. * @return 是否设置成功
  31. */
  32. - (BOOL)setPolylineWithPoints:(MAMapPoint *)points count:(NSInteger)count;
  33. /**
  34. * @brief 重新设置坐标点. since 5.0.0
  35. * @param coords 指定的经纬度坐标点数组,C数组,内部会做copy,调用者负责内存管理
  36. * @param count 坐标点的个数
  37. * @return 是否设置成功
  38. */
  39. - (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
  40. @end
  41. #endif