mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
24 lines
404 B
TypeScript
24 lines
404 B
TypeScript
|
|
|
|
var map: L.Map;
|
|
|
|
// Defaults
|
|
var 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);
|