-
Notifications
You must be signed in to change notification settings - Fork 117
/
index.html
42 lines (39 loc) · 1.59 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
<!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 href='https://www.mapbox.com/base/latest/base.css' rel='stylesheet' />
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-tAGcCfR4Sc5ZP5ZoVz0quoZDYX5aCtEm/eu1KhSLj2c9eFrylXZknQYmxUssFaVJKvvc0dJQixhGjG2yXWiV9Q=="
crossorigin=""></script>
<link href='dist/leaflet.fullscreen.css' rel='stylesheet' />
<script src='dist/Leaflet.fullscreen.min.js'></script>
</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>
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>