Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/leaflet.fullscreen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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: Wed, 03 Sep 2025 08:02:48 GMT
- Dependencies: @types/leaflet
Credits
These definitions were written by William Comartin, and Dan Manastireanu.