-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (48 loc) · 2.21 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
<title>UrMI Feature Density</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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="leaflet-fullHash.js"></script>
</head>
<body>
<div id="map" style="position:absolute; left:0; right:0; top:0; bottom:0; background-color:black;"></div>
<script>
var map = L.map('map', {
center: [40.20686744130122, -82.6971200180357],
zoom: 8,
minZoom: 4,
maxZoom: 13
});
var attr = 'data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors, <a href="https://openstreetmap.org/copyright">ODbL</a>, Imagery © <a href="https://www.openstreetmap.org/user/tyr_asd/">Martin Raifer</a>, <a href="https://creativecommons.org/licenses/by/3.0/">cc-by</a>';
var urmi = L.tileLayer('./tiles/{z}/{x}/{y}.png', {tms: 1, opacity: 1, attribution: "", minZoom: 4, maxZoom: 13}),
overlay = L.tileLayer('https://api.mapbox.com/styles/v1/openstreetmap/ckasmteyi1tda1ipfis6wqhuq/tiles/256/{z}/{x}/{y}?access_token=pk.eyJ1IjoidHlyIiwiYSI6ImNpcTdyZWQwbjAwMmhoeW5zbXc1enJ3cWoifQ.094oUYlT0wZbf2Q2wM-QQQ', {
opacity: 0.75,
attribution: 'overlay © <a href="https://www.mapbox.com/about/maps/">Mapbox</a>'
});
L.control.layers({
"UrMI": urmi
}, {
"locations":overlay
}).addTo(map);
urmi.addTo(map);
overlay.addTo(map);
var hash = new L.Hash(map, {
"UrMI": urmi,
"places":overlay
});
L.control.scale({metric:true, imperial:false}).addTo(map);
</script>
<script>
setTimeout(function() {
var script = document.createElement('script');
script.asnyc = 'async';
script.src = 'https://unpkg.com/[email protected]/Leaflet.GridLayer.FadeOut.js';
document.getElementsByTagName('head')[0].appendChild(script);
}, 2000);
</script>
</body>
</html>