-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
39 lines (36 loc) · 898 Bytes
/
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
<!doctype html>
<html lang="en">
<head>
<title>Simple Leaflet example</title>
<meta charset="utf-8">
<meta name="viewport"content="width=device-width,initial-scale=1">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
#map {
position: absolute;
width: 100%;
height: 100%;
}
.leaflet-container {
background-color: #959190;
}
</style>
</head>
<body>
</header>
<div id="map"></div>
<script>
var tileUrl = 'corsica/{z}/{x}/{y}.png',
map = L.map('map', {
maxZoom: 5
});
L.tileLayer(tileUrl, {tms: true}).addTo(map);
map.setView([-45, -90], 3);
</script>
</body>
</html>