* @function HeatMap.prototype.setOpacity * @description 设置图层的不透明度,取值范围:[0-1]。 * @param {number} opacity - 不透明度。
(opacity)
| 140 | * @param {number} opacity - 不透明度。 |
| 141 | */ |
| 142 | setOpacity(opacity) { |
| 143 | if (opacity !== this.opacity) { |
| 144 | this.opacity = opacity; |
| 145 | var element = this.rootCanvas; |
| 146 | CommonUtil.modifyDOMElement(element, null, null, null, |
| 147 | null, null, null, opacity); |
| 148 | |
| 149 | if (this.map !== null) { |
| 150 | // this.dispatchEvent({type: 'changelayer', value: {layer: this, property: "opacity"}}); |
| 151 | this.changed(); |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * @function HeatMap.prototype.updateHeatPoints |
no outgoing calls
no test coverage detected