-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 2.14 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Covid Simulation</title>
<style>
html,
body,
#map {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
#canvas {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
#stats {
position: absolute;
top: 5px;
left: 5px;
pointer-events: none;
border: 1px solid;
background: #f6f6f6;
}
#export {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
}
#export button {
cursor: pointer;
}
#export-inner {
padding: 5px;
border-radius: 3px;
background: #ffffffaa;
}
#export-text {
width: 230px;
height: 210px;
resize: none;
background: #ffffffaa;
}
</style>
</head>
<body>
<div id="map"></div>
<canvas id="canvas"></canvas>
<canvas id="stats"></canvas>
<div id="export">
<div id="export-inner">
<div>
<textarea id="export-text" readonly></textarea>
</div>
<div>
<button id="export-close">Close</button>
<button id="export-copy">Copy</button>
</div>
</div>
</div>
<script src="https://mapgl.2gis.com/api/js/v1"></script>
<script src="./dist/demo.js"></script>
</body>
</html>