* @function WebMapBase.prototype.setPitch * @description 更新地图倾角。 * @param {number} pitch - 地图倾角。
(pitch)
| 246 | * @param {number} pitch - 地图倾角。 |
| 247 | */ |
| 248 | setPitch(pitch) { |
| 249 | if (this.map) { |
| 250 | this.mapOptions.pitch = pitch; |
| 251 | if (pitch !== +this.map.getPitch().toFixed(2)) { |
| 252 | (pitch || pitch === 0) && this.map.setPitch(pitch); |
| 253 | } |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * @function WebMapBase.prototype.setStyle |
no outgoing calls
no test coverage detected