@types/leaflet-rastercoords
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet-rastercoords

Weekly Downloads

269

Version

1.0.5

License

MIT

Unpacked Size

3.61 kB

Total Files

5

Last publish

Collaborators

  • types