npm.io
1.0.6 • Published 10 months ago

@types/leaflet-rastercoords

Licence
MIT
Version
1.0.6
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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: Wed, 03 Sep 2025 0848 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Kan Cheung.