-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgis3_test.html
29 lines (26 loc) · 875 Bytes
/
gis3_test.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
<!DOCTYPE html>
<html style="height:100%;margin:0;padding:0;">
<title>Tiles in hot3 / gis3</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script>
<style type="text/css">
.leaflet-tile-container { pointer-events: auto; }
</style>
</head>
<body style="height:100%;margin:0;padding:0;">
<div id="map" style="height:100%"></div>
<script>
//<![CDATA[
var map = L.map('map').setView([53.35, -4.08], 6);
L.tileLayer('http://127.0.0.1/hot3/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 25,
maxNativeZoom: 24
}).addTo(map);
var hash = L.hash(map)
//]]>
</script>
</body>
</html>