Installation
npm install --save @types/leaflet-rastercoords
Summary
This package contains type definitions for leaflet-rastercoords (https://github.com/commenthol/leaflet-rastercoords).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-rastercoords.
index.d.ts
import { LatLng, LatLngBounds, LatLngExpression, Map, Point, PointExpression } from "leaflet";
declare module "leaflet" {
class RasterCoords {
constructor(map: Map, imgsize: number[], tilesize?: number, setmaxbounds?: boolean);
zoomLevel(): number;
unproject(coords: PointExpression): LatLng;
project(coords: LatLngExpression): Point;
getMaxBounds(): LatLngBounds;
setMaxBounds(): void;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by Kan Cheung.