mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { Extent } from './extent';
|
|
import Corner from './extent/Corner';
|
|
import { ProjectionLike } from './proj';
|
|
import Projection from './proj/Projection';
|
|
import { Size } from './size';
|
|
import { TileCoord } from './tilecoord';
|
|
import TileGrid from './tilegrid/TileGrid';
|
|
|
|
export interface XYZOptions {
|
|
extent?: Extent;
|
|
maxZoom?: number;
|
|
minZoom?: number;
|
|
tileSize?: number | Size;
|
|
}
|
|
export function createForExtent(
|
|
extent: Extent,
|
|
opt_maxZoom?: number,
|
|
opt_tileSize?: number | Size,
|
|
opt_corner?: Corner,
|
|
): TileGrid;
|
|
export function createForProjection(
|
|
projection: ProjectionLike,
|
|
opt_maxZoom?: number,
|
|
opt_tileSize?: number | Size,
|
|
opt_corner?: Corner,
|
|
): TileGrid;
|
|
export function createXYZ(opt_options?: XYZOptions): TileGrid;
|
|
export function extentFromProjection(projection: ProjectionLike): Extent;
|
|
export function getForProjection(projection: Projection): TileGrid;
|
|
export function wrapX(tileGrid: TileGrid, tileCoord: TileCoord, projection: Projection): TileCoord;
|