-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
50 lines (45 loc) · 1.02 KB
/
index2.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
<!doctype html>
<head>
<title>mapbox gl memory leak test demo</title>
<link href='https://api.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.css' rel='stylesheet' />
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body,
html,
#map {
width: 100%;
height: 100%;
}
#refresh {
background-color: #3887be;
text-align: center;
color: #fff;
padding: 10px;
position: absolute;
left: 30px;
top: 30px;
border: none;
cursor: pointer;
border-radius: 3px;
white-space: nowrap;
text-overflow: ellipsis;
font-family: 'Open Sans Bold', sans-serif;
font-weight: bold;
line-height: 30px;
font-size: 20px;
z-index: 999;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
}
</style>
</head>
<body>
<button id="refresh">Update Data</button>
<div id="map"></div>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.26.0/mapbox-gl.js'></script>
<script type="text/javascript" src="src/main.js"></script>
</body>
</html>