Merge pull request #15461 from DenisCarriere/leaflet-fullscreen

Implement leaflet-fullscreen
This commit is contained in:
Nathan Shively-Sanders
2017-03-28 15:25:51 -07:00
committed by GitHub
5 changed files with 45 additions and 0 deletions

12
types/leaflet-fullscreen/index.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
// Type definitions for leaflet-fullscreen 1.0
// Project: https://github.com/Leaflet/Leaflet.fullscreen
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="leaflet" />
declare namespace L {
interface MapOptions {
fullscreenControl?: true | {pseudoFullscreen: boolean}
}
}

View File

@@ -0,0 +1,5 @@
var map = L.map('map', {
center: [51.505, -0.09],
zoom: 13,
fullscreenControl: true,
});

View File

@@ -0,0 +1,5 @@
{
"dependencies": {
"@types/leaflet": "^1.0.58"
}
}

View File

@@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"leaflet-fullscreen-tests.ts"
]
}

View File

@@ -0,0 +1,3 @@
{
"extends": "../tslint.json"
}