mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* add missing import * google-map-react/utils test * import * no more other files * test updates * add sw to coords
27 lines
844 B
TypeScript
27 lines
844 B
TypeScript
import { Bounds, Coords, Point, Size, NESWBounds } from '.';
|
|
|
|
export interface Tile extends Point {
|
|
zoom: number;
|
|
}
|
|
|
|
export function convertNeSwToNwSe(boundCorder: { ne: Coords; sw: Coords }): { nw: Coords; se: Coords };
|
|
|
|
export function convertNwSeToNeSw(boundCorder: { nw: Coords; se: Coords }): { ne: Coords; sw: Coords };
|
|
|
|
export function fitBounds(
|
|
bounds: NESWBounds,
|
|
size: Size,
|
|
): {
|
|
center: { lat: number; lng: number };
|
|
zoom: number;
|
|
newBounds: Bounds;
|
|
};
|
|
|
|
export function meters2ScreenPixels(meters: number, coords: Coords, zoom: number): { w: number; h: number };
|
|
|
|
export function tile2LatLng(point: Point, zoom: number): { coords: Coords };
|
|
|
|
export function latLng2Tile(coords: Coords, zoom: number): { point: Point };
|
|
|
|
export function getTilesIds(start: { from: number; to: number }, zoom: number): Tile[];
|