mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-04 20:54:36 +00:00
21 lines
987 B
TypeScript
21 lines
987 B
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;
|