* @function Bounds.prototype.getCenterLonLat * @description 获取地理格式的范围中心点。 * @example * var bounds = new Bounds(-180,-90,100,80); * var lonlat = bounds.getCenterLonLat(); * @returns {LonLat} 当前地理范围的中心点。
()
| 243 | * @returns {LonLat} 当前地理范围的中心点。 |
| 244 | */ |
| 245 | getCenterLonLat() { |
| 246 | if (!this.centerLonLat) { |
| 247 | this.centerLonLat = new LonLat( |
| 248 | (this.left + this.right) / 2, (this.bottom + this.top) / 2 |
| 249 | ); |
| 250 | } |
| 251 | return this.centerLonLat; |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * @function Bounds.prototype.scale |
no outgoing calls
no test coverage detected