forked from Leaflet/Leaflet.fullscreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (31 loc) · 1.2 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
<!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="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.1/leaflet.js?2"></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 id='map' class='col12 row10 space-bottom'></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: true
}).setView([37.8, -96], 4);
L.tileLayer('http://{s}.tiles.mapbox.com/v3/examples.map-i86knfo3/{z}/{x}/{y}.png', {
attribution: '<a href=\'http://mapbox.com/about/maps\' target=\'_blank\'>Terms & Feedback</a>'
}).addTo(map);
</script>
</body>
</html>