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.

44 lines
1.5 KiB

//
// MAMultiTexturePolylineRenderer.h
// MapKit_static
//
// Created by yi chen on 12/11/15.
// Copyright © 2016 Amap. All rights reserved.
//
#import "MAConfig.h"
#if MA_INCLUDE_OVERLAY_MAMultiPolyline
#import "MAPolylineRenderer.h"
#import "MAMultiPolyline.h"
///此类用于绘制MAMultiPolyline对应的多彩线,支持分段纹理绘制
@interface MAMultiTexturePolylineRenderer : MAPolylineRenderer
///关联的MAMultiPolyline model
@property (nonatomic, readonly) MAMultiPolyline *multiPolyline;
///分段纹理图片数组
@property (nonatomic, strong) NSArray *strokeTextureImages;
///取分段纹理id,返回分段纹理id数组, 如果strokeTextureImages未指定、尚未加载或加载失败,返回值可能包含0
@property (nonatomic, strong, readonly) NSArray<NSNumber*> *strokeTextureIDs;
/**
* @brief MAMultiPolyline生成一个多段线Renderer
* @param multiPolyline MAMultiPolyline
* @return 线Renderer
*/
- (instancetype)initWithMultiPolyline:(MAMultiPolyline *)multiPolyline;
/**
* @brief . 使
* @param textureImages UIImage数组2nil
* @return 0
*/
- (BOOL)loadStrokeTextureImages:(NSArray *)textureImages __attribute__((deprecated("已废弃, 请通过属性strokeTextureImages设置")));
@end
#endif