高德地图SDK(导航)  V11.1.000
MAHeatMapGradient Class Reference

#import <MAHeatMapTileOverlay.h>

Inheritance diagram for MAHeatMapGradient:

Instance Methods

(instancetype) - initWithColor:andWithStartPoints:
 重新设置gradient的时候,需要执行 MATileOverlayRenderer 的 reloadData 方法重刷新渲染缓存。 When resetting the gradient, you need to execute the reloadData method of MATileOverlayRenderer to refresh the rendering cache. More...
 

Properties

NSArray< UIColor * > * colors
 
NSArray< NSNumber * > * startPoints
 

Detailed Description

热力图渐变属性 Heatmap gradient properties

Method Documentation

◆ initWithColor:andWithStartPoints:

- (instancetype) initWithColor: (NSArray< UIColor * > *)  colors
andWithStartPoints: (NSArray< NSNumber * > *)  startPoints 

重新设置gradient的时候,需要执行 MATileOverlayRenderer 的 reloadData 方法重刷新渲染缓存。 When resetting the gradient, you need to execute the reloadData method of MATileOverlayRenderer to refresh the rendering cache.

Parameters
colors颜色 Color
startPointsstartPoints
Returns
instance

Property Documentation

◆ colors

- (NSArray<UIColor *>*) colors
readnonatomicassign

颜色变化数组。 default [blue,green,red] Color gradient array. default [blue,green,red]

◆ startPoints

- (NSArray<NSNumber *>*) startPoints
readnonatomicassign

颜色变化起点,需为递增数组,区间为(0, 1)。default[@(0.2),@(0.5),@(0,9)] Starting point of color gradient, must be an increasing array, range (0, 1). default[@(0.2),@(0.5),@(0,9)]


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。