-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (43 loc) · 1.45 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>Bing and Mapbox satellite imagery holes</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css" integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.3.1/dist/leaflet.js" integrity="sha512-/Nsx9X4HebavoBvEBuyp3I7od5tA0UzAxs+j83KgC8PU0kgB4XiK4Lfe4y4cgBtaRJQEIFCW+oC506aPT2L1zw==" crossorigin=""></script>
<style>
body { margin: 0; padding: 0 }
#map { position: absolute; top: 0; bottom: 0; width: 100% }
</style>
</head>
<body>
<div id='map'></div>
<script src="bing.js"></script>
<script src="mapbox.js"></script>
<script>
var map = L.map('map').setView([54, 60], 7);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors',
}).addTo(map);
L.geoJSON(bing, {
style: {
color: "#00aa77",
fillColor: "#00aa77",
opacity: 0.3,
fillOpacity: 0.1
}
}).addTo(map);
L.geoJSON(mapbox, {
style: {
color: "#4264fb",
fillColor: "#4264fb",
opacity: 0.3,
fillOpacity: 0.1
}
}).addTo(map);
</script>
</body>
</html>