-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
45 lines (42 loc) · 1.44 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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Amedas</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css"></link>
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; z-index:1; cursor:default; background:#202020; }
#app { position:absolute; bottom:10px; left:10px; z-index:10; color:#fff; font-size:16px; }
#app div { position:relative; display:inline-block; padding-right:12px; }
</style>
</head>
<body>
<div id='map'></div>
<div id='app'>
<div>Amedas</div><div>Wind</div>
<div id='time'></div>
</div>
<script src="//unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="lib/leaflet-windbarb.js"></script>
<script src="leaflet-amedas.js"></script>
<script>
var map_id = 'tattii.77d8c7e1';
var token = 'pk.eyJ1IjoidGF0dGlpIiwiYSI6ImxKQ1hwOXcifQ.xGx4WsNt9GMqbZ0T5A7C8Q';
var mapboxTiles = new L.tileLayer('//{s}.tiles.mapbox.com/v4/' + map_id + '/{z}/{x}/{y}{r}.png?access_token=' + token);
var map = new L.map('map', {
center: [36.5, 137.6],
zoom: 5,
minZoom: 5,
maxZoom: 13,
attributionControl: false,
zoomControl: false
})
.addLayer(mapboxTiles);
var amedas = new L.Amedas();
amedas.addTo(map);
</script>
</body>
</html>