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

    1.0.1 • 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

    // Type definitions for leaflet.pancontrol 1.0
    // Project: https://github.com/kartena/Leaflet.Pancontrol
    // Definitions by: Brictarus <https://github.com/Brictarus>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.3
    
    import { ControlOptions, Control as LControl } 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: Thu, 08 Jul 2021 16:23:38 GMT
    • Dependencies: @types/leaflet
    • Global values: none

    Credits

    These definitions were written by Brictarus.

    Keywords

    none

    Install

    npm i @types/leaflet.pancontrol

    DownloadsWeekly Downloads

    115

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.25 kB

    Total Files

    4

    Last publish

    Collaborators

    • types