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

1.0.4 • Public • Published

Installation

npm install --save @types/leaflet.pancontrol

Summary

This package contains type definitions for leaflet.pancontrol (https://github.com/kartena/Leaflet.Pancontrol).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.pancontrol.

index.d.ts

import { Control as LControl, ControlOptions } from "leaflet";

declare module "leaflet" {
    interface MapOptions {
        panControl?: boolean | undefined;
    }

    namespace control {
        function pan(options?: Control.PanControlOptions): Control.Pan;
    }

    namespace Control {
        interface PanControlOptions extends ControlOptions {
            panOffset?: number | undefined;
        }

        class Pan extends LControl {
            options: PanControlOptions;

            constructor(options?: PanControlOptions);
        }
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Brictarus.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.pancontrol

Weekly Downloads

384

Version

1.0.4

License

MIT

Unpacked Size

3.82 kB

Total Files

5

Last publish

Collaborators

  • types