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.
69 lines
1.6 KiB
69 lines
1.6 KiB
// |
|
// MAHeatMapTileOverlay.h |
|
// test2D |
|
// |
|
// Created by xiaoming han on 15/4/21. |
|
// Copyright (c) 2015年 Amap. All rights reserved. |
|
// |
|
|
|
|
|
|
|
#import "MAConfig.h" |
|
|
|
#if MA_INCLUDE_OVERLAY_HEATMAP |
|
|
|
#import "MATileOverlay.h" |
|
|
|
///热力图节点 |
|
@interface MAHeatMapNode : NSObject |
|
|
|
///经纬度 |
|
@property (nonatomic, assign) CLLocationCoordinate2D coordinate; |
|
|
|
///强度 |
|
@property (nonatomic, assign) float intensity; |
|
|
|
@end |
|
|
|
///热力图渐变属性 |
|
@interface MAHeatMapGradient : NSObject<NSCopying> |
|
|
|
///颜色变化数组。 default [blue,green,red] |
|
@property (nonatomic, readonly) NSArray<UIColor *> *colors; |
|
|
|
///颜色变化起点,需为递增数组,区间为(0, 1)。default[@(0.2),@(0.5),@(0,9)] |
|
@property (nonatomic, readonly) NSArray<NSNumber *> *startPoints; |
|
|
|
/** |
|
* @brief 重新设置gradient的时候,需要执行 MATileOverlayRenderer 的 reloadData 方法重刷新渲染缓存。 |
|
* @param colors 颜色 |
|
* @param startPoints startPoints |
|
* @return instance |
|
*/ |
|
- (instancetype)initWithColor:(NSArray<UIColor *> *)colors andWithStartPoints:(NSArray<NSNumber *> *)startPoints; |
|
|
|
@end |
|
|
|
///热力图tileOverlay |
|
@interface MAHeatMapTileOverlay : MATileOverlay |
|
|
|
///MAHeatMapNode array |
|
@property (nonatomic, strong) NSArray<MAHeatMapNode *> *data; |
|
|
|
///热力图半径,默认为12,范围:10-200 screen point |
|
@property (nonatomic, assign) NSInteger radius; |
|
|
|
///透明度,默认为0.6,范围:0-1 |
|
@property (nonatomic, assign) CGFloat opacity; |
|
|
|
///热力图梯度 |
|
@property (nonatomic, strong) MAHeatMapGradient *gradient; |
|
|
|
///是否开启高清热力图,默认关闭 |
|
@property (nonatomic, assign) BOOL allowRetinaAdapting; |
|
|
|
@end |
|
|
|
#endif |
|
|
|
|
|
|