1.2.4 • Published 7 months ago

@types/leaflet-mouse-position v1.2.4

Weekly downloads
44
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for leaflet-mouse-position 1.2
// Project: https://github.com/danwild/Leaflet.MousePosition
// Definitions by: Hanyon <https://github.com/Hanyon>
//                 Håkon <https://github.com/hlovdal>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import { ControlOptions, Control as LControl } 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: Thu, 08 Jul 2021 16:23:35 GMT
  • Dependencies: @types/leaflet
  • Global values: none

Credits

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

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

9 months ago

1.2.1

3 years ago

1.2.0

5 years ago

1.1.0

6 years ago