-
Notifications
You must be signed in to change notification settings - Fork 15
/
index.html
40 lines (34 loc) · 946 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
40
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.5/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.5/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.4.5/leaflet.js"></script>
<style>
body {
margin:10px auto;
width:90%;
font:14px/20px 'Helvetica';
}
#map {
border: 1px solid;
width: 100%;
height: 600px;
margin: 10px auto;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = new L.Map('map');
var url = 'http://localhost:8000/{z}/{x}/{y}.png';
var local_tiles = new L.TileLayer(url, { maxZoom: 22 });
map.setView(new L.LatLng(0, 0), 2).addLayer(local_tiles);
</script>
</body>
</html>