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

3.0.2 • Public • Published

Installation

npm install --save @types/leaflet.fullscreen

Summary

This package contains type definitions for leaflet.fullscreen (https://github.com/brunob/leaflet.fullscreen).

Details

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

index.d.ts

import * as L from "leaflet";

declare module "leaflet" {
    namespace Control {
        class Fullscreen extends Control {
            constructor(options?: FullscreenOptions);
            options: FullscreenOptions;
        }

        interface FullscreenOptions {
            content?: string | undefined;
            position?: ControlPosition | undefined;
            title?: string | undefined;
            titleCancel?: string | undefined;
            forceSeparateButton?: boolean | undefined;
            forcePseudoFullscreen?: boolean | undefined;
            fullscreenElement?: false | HTMLElement | undefined;
        }
    }

    namespace control {
        /**
         * Creates a fullscreen control.
         */
        function fullscreen(options?: Control.FullscreenOptions): Control.Fullscreen;
    }

    interface MapOptions {
        fullscreenControl?: boolean | undefined;
        fullscreenControlOptions?: Control.FullscreenOptions | undefined;
    }

    interface Map {
        toggleFullScreen(): void;
    }
}

Additional Details

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

Credits

These definitions were written by William Comartin, and Dan Manastireanu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.fullscreen

Weekly Downloads

3,238

Version

3.0.2

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • types