forked from AcuvaGeoTech/swift_transit_ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
y.html
60 lines (50 loc) · 1.47 KB
/
y.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
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<style>
#map-id {
height: 100%;
width: 100%;
position: absolute;
}
html,
body {
margin: 0;
padding: 0
}
#map-id:before {
position: absolute;
content: '';
height: 100%;
width: 100%;
background: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
pointer-events: none;
z-index: 999;
}
h1::before {
/* content: 'Hello World'; */
color: #FFF;
position: absolute;
left: 100px;
z-index: 999;
}
</style>
</head>
<body>
<div id="map-id">
<h1>Hello</h1>
</div>
</body>
<script>
var mymap = L.map('map-id').setView([51.505, -0.09], 13);
//initialize a tile map
L.tileLayer('http://{s}.tile.thunderforest.com/landscape/{z}/{x}/{y}.png',
{ attribution: '© <a href="http://www.opencyclemap.org">OpenCycleMap</a>, © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' })
.addTo(mymap);
</script>
</html>