-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
24 lines (23 loc) · 852 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>servembtiles.py test map</title>
<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>
</head>
<body>
<div id="map" style="width: 100%; height: 500px"></div>
<script>
var map = L.map('map').setView([35.6895, 139.6917], 14); // adjust to appropriate area your map covers.
// IP:PORT configured for test server defaults
// Update as necessary
L.tileLayer(
'http://localhost:8005/{z}/{x}/{y}.png', {
attribution: '© Attribution Here',
maxZoom: 18,
tms: true, // note mbtiles are in TMS, this must be set to 'true'.
}).addTo(map);
</script>
</body>
</html>