1.0.5 • Published 7 months ago
@types/leaflet-rastercoords v1.0.5
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
// Type definitions for leaflet-rastercoords 1.0
// Project: https://github.com/commenthol/leaflet-rastercoords
// Definitions by: Kan Cheung <https://github.com/chinkan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Map, LatLng, Point, LatLngExpression, PointExpression, LatLngBounds } from 'leaflet';
declare module 'leaflet' {
class RasterCoords {
constructor(map: Map, imgsize: number[], tilesize?: number);
zoomLevel(): number;
unproject(coords: PointExpression): LatLng;
project(coords: LatLngExpression): Point;
getMaxBounds(): LatLngBounds;
setMaxBounds(): void;
}
}
Additional Details
- Last updated: Mon, 22 Nov 2021 21:31:04 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by Kan Cheung.