* @function WebMapBase.prototype.setBearing * @description 更新地图旋转角度。 * @param {number} pitch - 地图旋转角度。
(bearing)
| 232 | * @param {number} pitch - 地图旋转角度。 |
| 233 | */ |
| 234 | setBearing(bearing) { |
| 235 | if (this.map) { |
| 236 | this.mapOptions.bearing = bearing; |
| 237 | if (bearing !== +this.map.getBearing().toFixed(2)) { |
| 238 | (bearing || bearing === 0) && this.map.setBearing(bearing); |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * @function WebMapBase.prototype.setPitch |
no outgoing calls
no test coverage detected