1.0.9 • Published 7 months ago
@types/leaflet-fullscreen v1.0.9
Installation
npm install --save @types/leaflet-fullscreen
Summary
This package contains type definitions for leaflet-fullscreen (https://github.com/Leaflet/Leaflet.fullscreen).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet-fullscreen.
index.d.ts
// Type definitions for leaflet-fullscreen 1.0
// Project: https://github.com/Leaflet/Leaflet.fullscreen
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Brian Jubelirer <https://github.com/bjubes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as L from 'leaflet';
declare module 'leaflet' {
interface MapOptions {
fullscreenControl?: true | FullscreenControlOptions | undefined;
}
interface FullscreenControlOptions extends ControlOptions {
pseudoFullscreen?: boolean;
title?: {
'false': string,
'true': string
};
}
interface Map {
isFullscreen: () => boolean;
toggleFullscreen: (options?: FullscreenControlOptions) => void;
}
}
Additional Details
- Last updated: Mon, 06 Dec 2021 23:31:02 GMT
- Dependencies: @types/leaflet
- Global values: none
Credits
These definitions were written by Denis Carriere, and Brian Jubelirer.