You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

//
// MAPolyline.h
// MAMapKit
//
//
// Copyright (c) 2011年 Amap. All rights reserved.
//
#import "MAConfig.h"
#import "MAMultiPoint.h"
#import "MAOverlay.h"
///此类用于定义一个由多个点相连的多段线,点与点之间尾部相连但第一点与最后一个点不相连, 通常MAPolyline是MAPolylineView的model
@interface MAPolyline : MAMultiPoint <MAOverlay>
/**
* @brief map point数据生成多段线
* @param points map point数据,points对应的内存会拷贝,
* @param count map point个数
* @return 线
*/
+ (instancetype)polylineWithPoints:(MAMapPoint *)points count:(NSUInteger)count;
/**
* @brief 线
* @param coords ,coords对应的内存会拷贝,
* @param count
* @return 线
*/
+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count;
/**
* @brief 线. since 5.0.0
* @param points , C数组copy
* @param count
* @return
*/
- (BOOL)setPolylineWithPoints:(MAMapPoint *)points count:(NSInteger)count;
/**
* @brief 线. since 5.0.0
* @param coords , C数组copy
* @param count
* @return
*/
- (BOOL)setPolylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSInteger)count;
@end