@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
14 lines (13 loc) • 547 B
TypeScript
import type { LngLat } from './lng-lat';
import type { WorldCoordinates } from './coordinates';
interface GenericProjection<TSource> {
/** Projection identity type. It may be:
* - EPSG-code (e.g. [EPSG:3857](https://epsg.io/3857))
* - any other string to identify (e.g. 'cartesian')
**/
readonly type?: string;
toWorldCoordinates(point: TSource): WorldCoordinates;
fromWorldCoordinates(coordinates: WorldCoordinates): TSource;
}
type Projection = GenericProjection<LngLat>;
export { Projection, GenericProjection };