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.