leaflet
Version:
JavaScript library for mobile-friendly interactive maps
18 lines (17 loc) • 715 B
TypeScript
import { LatLng } from '../LatLng.js';
import { Bounds } from '../../geometry/Bounds.js';
import { Point } from '../../geometry/Point.js';
import type { LatLngExpression, PointExpression } from '../../types.js';
/**
* Spherical Mercator projection — the most common projection for online maps, used by almost all free and commercial
* tile providers. Assumes that Earth is a sphere. Used by the `EPSG:3857` CRS.
*/
export declare const SphericalMercatorProjection: {
R: number;
MAX_LATITUDE: number;
/** @param {LatLngExpression} latlng */
project(latlng: LatLngExpression): Point;
/** @param {PointExpression} point */
unproject(point: PointExpression): LatLng;
bounds: Bounds;
};