import Extent, { JsonExtent } from '../../geo/Extent'; import * as projections from '../../geo/projection'; import type { ProjectionType } from '../../geo/projection'; import Transformation from '../../geo/transformation/Transformation'; export type FullExtent = { top: number; left: number; bottom: number; right: number; }; export type SpatialReferenceType = { projection: string | ProjectionType; resolutions?: number[]; fullExtent?: FullExtent | JsonExtent; }; /** * 空间参考类 * * @english * SpatialReference Class */ export default class SpatialReference { options: SpatialReferenceType; isEPSG: boolean; json: SpatialReferenceType; constructor(options?: SpatialReferenceType); static registerPreset(name: string, value: SpatialReferenceType): void; static getPreset(preset: string): SpatialReferenceType; static getAllPresets(): string[]; static loadArcgis(url: string, cb: (_: any, spatialRef?: any) => void, options?: any): typeof SpatialReference; static loadWMTS(url: string, cb: (_: any, spatialRef?: any) => void, options?: any): typeof SpatialReference; /** * 获取投影类实例对象 * * @english * get Projection Class instance * @param projection * @returns */ static getProjectionInstance(projection?: string | ProjectionType): any; static equals(sp1: SpatialReferenceType, sp2: SpatialReferenceType): boolean; getResolutions(): number[]; getResolution(zoom: number): number; getProjection(): projections.ProjectionType; getFullExtent(): Extent; getTransformation(): Transformation; getMinZoom(): number; getMaxZoom(): number; getZoomDirection(): number; toJSON(): SpatialReferenceType; isPyramid(): boolean; } export declare function getDefaultSpatialReference(): Record; //# sourceMappingURL=SpatialReference.d.ts.map