leaflet
Version:
JavaScript library for mobile-friendly interactive maps
28 lines (27 loc) • 1.12 kB
TypeScript
import { CRS } from './CRS.js';
import { Transformation } from '../../geometry/Transformation.js';
import type { LatLng } from '../LatLng.js';
/** @import {LatLng} from '../LatLng.js' */
/**
* A simple CRS that maps longitude and latitude into `x` and `y` directly. May be used for maps of flat surfaces
* (e.g. game maps). Note that the `y` axis should still be inverted (going from bottom to top). `distance()` returns
* simple euclidean distance.
*/
export declare class SimpleCRS extends CRS {
static projection: {
project(latlng: import("../LatLng.js").LatLngExpression): import("../../Leaflet.js").Point;
unproject(point: import("../../types.js").PointExpression): LatLng;
bounds: import("../../Leaflet.js").Bounds;
};
static transformation: Transformation;
/** @param {number} zoom */
static scale(zoom: number): number;
/** @param {number} scale */
static zoom(scale: number): number;
/**
* @param {LatLng} latlng1
* @param {LatLng} latlng2
*/
static distance(latlng1: LatLng, latlng2: LatLng): number;
static infinite: boolean;
}