mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
489 B
TypeScript
23 lines
489 B
TypeScript
import * as L from 'leaflet';
|
|
import 'leaflet.fullscreen';
|
|
|
|
const map: L.Map = L.map('map-container');
|
|
|
|
// Defaults
|
|
const icon: L.Control.Fullscreen = L.control.fullscreen({
|
|
position: 'topleft',
|
|
title: 'Full Screen',
|
|
titleCancel: 'Exit Full Screen',
|
|
forceSeparateButton: false,
|
|
forcePseudoFullscreen: false
|
|
});
|
|
|
|
icon.addTo(map);
|
|
|
|
// My Usage
|
|
L.control.fullscreen({
|
|
position: 'topleft',
|
|
content: '<i class="fa fa-arrows-alt"></i>',
|
|
forceSeparateButton: true,
|
|
}).addTo(map);
|