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

1.2.4 • Public • Published

Installation

npm install --save @types/leaflet-mouse-position

Summary

This package contains type definitions for leaflet-mouse-position (https://github.com/danwild/Leaflet.MousePosition).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-mouse-position.

index.d.ts

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

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

    namespace control {
        function mousePosition(options?: Control.MousePositionControlOptions): Control.MousePosition;
    }

    namespace Control {
        interface MousePositionControlOptions extends ControlOptions {
            separator?: string | undefined;
            emptyString?: string | undefined;
            lngFirst?: boolean | undefined;
            numDigits?: number | undefined;
            lngFormatter?: ((lng: number) => string) | undefined;
            latFormatter?: ((lat: number) => string) | undefined;
            formatter?: ((lng: number, lat: number) => string) | undefined;
            prefix?: string | undefined;
            wrapLng?: boolean | undefined;
        }

        class MousePosition extends LControl {
            options: MousePositionControlOptions;

            constructor(options?: MousePositionControlOptions);
        }
    }
}

Additional Details

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

Credits

These definitions were written by Hanyon, and Håkon.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet-mouse-position

Weekly Downloads

284

Version

1.2.4

License

MIT

Unpacked Size

5.02 kB

Total Files

5

Last publish

Collaborators

  • types