import { LatLng } from './latlng'; /** * 经纬度坐标范围 * @remark Represents a rectangular geographical area on a map. */ export declare class LatLngBounds { /** * 西南角经纬度 */ private _southWest; /** * 东北角经纬度 */ private _northEast; /** * 构造函数 * @param {LatLng | LatLng[]} a - 经纬度或经纬度数组 * @param {LatLng} b - 经纬度 */ constructor(a?: LatLng | LatLng[], b?: LatLng); /** * 扩展经纬度范围 * @param {LatLng | LatLngBounds} obj - 经纬度或经纬度范围 * @return {LatLngBounds} 返回经纬度范围 */ extend(obj: LatLng | LatLngBounds): LatLngBounds; /** * 缓冲经纬度范围 * @param {number} bufferRatio - 缓冲比例 * @return {LatLngBounds} 返回经纬度范围 */ pad(bufferRatio: number): LatLngBounds; /** * 中心点经纬度 * @remark Returns the center point of the bounds. * @return {LatLng} 返回经纬度 */ getCenter(): LatLng; /** * 西南角经纬度 * @remark Returns the south-west point of the bounds. * @return {LatLng} 返回经纬度 */ getSouthWest(): LatLng; /** * 东北角经纬度 * @remark Returns the north-east point of the bounds. * @return {LatLng} 返回经纬度 */ getNorthEast(): LatLng; /** * 西北角经纬度 * @remark Returns the north-west point of the bounds. * @return {LatLng} 返回经纬度 */ getNorthWest(): LatLng; /** * 东南角经纬度 * @remark Returns the south-east point of the bounds. * @return {LatLng} 返回经纬度 */ getSouthEast(): LatLng; /** * 西边经度 * @remark Returns the west longitude of the bounds * @return {number} 返回经度 */ getWest(): number; /** * 南边纬度 * @remark Returns the south latitude of the bounds * @return {number} 返回纬度 */ getSouth(): number; /** * 东边经度 * @remark Returns the east longitude of the bounds * @return {number} 返回经度 */ getEast(): number; /** * 北边纬度 * @remark Returns the north latitude of the bounds * @return {number} 返回纬度 */ getNorth(): number; /** * 判断是否包含经纬度或经纬度范围 * @param {LatLng | LatLngBounds} obj - 经纬度或经纬度范围 * @return {boolean} 返回是否包含 */ contains(obj: LatLng | LatLngBounds): boolean; /** * 判断是否与另一经纬度范围有交叉 * @param {LatLngBounds} obj - 经纬度范围 * @return {boolean} 返回是否交叉 */ intersects(bounds: LatLngBounds): boolean; /** * 判断是否与另一经纬度范围有叠盖 * @param {LatLngBounds} obj - 经纬度范围 * @return {boolean} 返回是否叠盖 */ overlaps(bounds: LatLngBounds): boolean; /** * 输出字符串 * @return {string} 返回字符串 */ toString(): string; /** * 判断经纬度范围是否相等(在一定容差内) * @param {LatLngBounds} bounds - 经纬度范围 * @param {number} maxMargin - 容差 * @return {boolean} 返回是否相等 */ equals(bounds: LatLngBounds, maxMargin?: number): boolean; /** * 判断经纬度范围是否有效 * @return {boolean} 返回是否有效 */ isValid(): boolean; }