MAMultiPoint.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // MAMultiPoint.h
  3. // MAMapKit
  4. //
  5. //
  6. // Copyright (c) 2011年 Amap. All rights reserved.
  7. //
  8. #import "MAConfig.h"
  9. #import <Foundation/Foundation.h>
  10. #import "MAShape.h"
  11. #import "MAGeometry.h"
  12. ///该类是个由多个点组成的虚基类, 不能直接实例化对象, 要使用其子类MAPolyline,MAPolygon来实例化
  13. @interface MAMultiPoint : MAShape {
  14. @package
  15. MAMapPoint *_points;
  16. NSUInteger _pointCount;
  17. MAMapRect _boundingRect;
  18. }
  19. ///坐标点数组
  20. @property (nonatomic, readonly) MAMapPoint *points;
  21. ///坐标点的个数
  22. @property (nonatomic, readonly) NSUInteger pointCount;
  23. ///是否跨越180度经度线,默认NO since 6.4.0
  24. @property (nonatomic, assign, readonly) BOOL cross180Longitude;
  25. /**
  26. * @brief 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中
  27. * @param coords 调用者提供的内存空间, 该空间长度必须大于等于要拷贝的坐标点的个数(range.length)
  28. * @param range 要拷贝的数据范围
  29. */
  30. - (void)getCoordinates:(CLLocationCoordinate2D *)coords range:(NSRange)range;
  31. @end