26 lines
647 B
TypeScript
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");
|
|
}
|
|
}
|