LiveAtlas/src/leaflet/projection/DynmapProjection.ts
2020-11-24 01:52:31 +00:00

26 lines
647 B
TypeScript

import L from 'leaflet';
import {Coordinate} from "@/dynmap";
export interface DynmapProjectionOptions {}
export interface DynmapProjection {
locationToLatLng(location: Coordinate): L.LatLng;
latLngToLocation(latLng: L.LatLng, y: number): Coordinate;
}
export class DynmapProjection extends L.Class {
constructor(options: DynmapProjectionOptions) {
super();
L.Util.setOptions(this, options);
}
locationToLatLng(location: Coordinate): L.LatLng {
throw new Error("fromLocationToLatLng not implemented");
}
latLngToLocation(latLng: L.LatLng, y: number): Coordinate {
throw new Error("fromLatLngToLocation not implemented");
}
}