new VisualMap()
- Source:
Methods
(async, static) createObj() → {Promise.<VisualMap>}
构造一个新的 VisualMap 对象。
- Source:
Returns:
- Type
- Promise.<VisualMap>
(async, static) createObjByParam(minValue, maxValue, colors颜色数组) → {Promise.<VisualMap>}
构造一个新的 VisualMap 对象。
Parameters:
| Name | Type | Description |
|---|---|---|
minValue |
视觉映射最小值,默认值为0 | |
maxValue |
视觉映射最大值,默认值为1 | |
colors颜色数组 |
Array | string类型的Array |
- Source:
Returns:
- Type
- Promise.<VisualMap>
(async, static) getColors() → {Promise.<Array>}
获取热力点的颜色组
- Source:
Returns:
string类型的Array
- Type
- Promise.<Array>
(async, static) getMaxValue() → {Promise.<double>}
获取视觉映射的最大值,默认值为1
- Source:
Returns:
- Type
- Promise.<double>
(async, static) getMinValue() → {Promise.<double>}
获取视觉映射的最小值,默认值为0
- Source:
Returns:
- Type
- Promise.<double>
(static) isValid() → {Boolean}
判断VisualMap对象是否有效
- Source:
Returns:
true:有效;false:无效
- Type
- Boolean
(async, static) setColors(colors) → {Promise.<void>}
设置热力点的颜色组
Parameters:
| Name | Type | Description |
|---|---|---|
colors |
Array | string类型的Array |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setMaxValue(maxValue) → {Promise.<void>}
设置视觉映射的最大值,默认值为1
在不设置maxValue的情况下,maxValue等于1;当热力点的权重值设置大于1的时候,maxValue依然为1
Parameters:
| Name | Type | Description |
|---|---|---|
maxValue |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setMinValue(minValue) → {Promise.<void>}
设置视觉映射的最小值,默认值为0
在不设置minValue的情况下,minValue等于0,当热力点的权重值设置小于0的时候,minValue依然为0.
Parameters:
| Name | Type | Description |
|---|---|---|
minValue |
- Source:
Returns:
- Type
- Promise.<void>