forked from Leaflet/Leaflet.fullscreen
-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
47 lines (46 loc) · 1.48 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<meta charset=utf-8 />
<title>Leaflet.fullscreen</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="dist/Leaflet.fullscreen.min.css" />
<style type="text/css">
html, body {
height: 100%;
padding: 0;
margin: 0;
}
#map {
position: absolute;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="limiter">
<div class="col10 margin1 pad4y">
<h1>Leaflet.fullscreen</h1>
<p>A HTML5 fullscreen plugin for Leaflet.</p>
<div class="space-bottom">
<div id="map" class="col12 row10"></div>
</div>
<p>For usage, check out the <a href="https://github.com/mapbox/Leaflet.fullscreen">project on GitHub</a>.</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="dist/Leaflet.fullscreen.min.js"></script>
<script>
var map = L.map("map", {
fullscreenControl: {
pseudoFullscreen: false
}
}).setView([37.8, -96], 4);
var positron = L.tileLayer("http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png", {
attribution: "© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors, © <a href='http://cartodb.com/attributions'>CartoDB</a>"
}).addTo(map);
</script>
</body>
</html>