-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathmap.html
More file actions
76 lines (75 loc) · 2.07 KB
/
Copy pathmap.html
File metadata and controls
76 lines (75 loc) · 2.07 KB
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
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="../../node_modules/skmeans/dist/browser/skmeans.min.js"></script>
<script src="https://webapi.amap.com/maps?v=2.0&key=d994a78081a6847648e3faa54be6b74a"></script>
<style>
body,
#mapContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
position: absolute;
}
.info-box {
width: 100px;
background-color: rgba(30, 144, 255, 0.5);
color: white;
line-height: 32px;
padding: 10px;
font-size: 14px;
border-radius: 4px;
box-shadow: 0 0 10px #ccc;
}
.info-box-triangle {
display: flex;
align-items: center;
justify-content: center;
}
.info-box-triangle > span {
display: inline-block;
height: 10px;
width: 10px;
position: relative;
top: -5px;
background: linear-gradient(to right bottom, transparent 50%, rgba(0, 255, 255, 0.3) 50%);
transform: rotate(45deg);
}
#zoom9,
#zoom16 {
display: block;
border: none;
background-color: dodgerblue;
color: white;
line-height: 32px;
padding: 0 10px;
margin: 10px;
}
#zoom9:hover,
#zoom16:hover {
filter: brightness(120%);
}
</style>
<script type="importmap">
{
"imports": {
"three": "../../node_modules/three/build/three.module.js",
"three/addons/": "../../node_modules/three/examples/jsm/",
"tween": "../../node_modules/three/examples/jsm/libs/tween.module.js"
}
}
</script>
</head>
<body>
<div id="mapContainer"></div>
<span style="position: fixed; top: 0; left: 0; z-index: 999; display: flex">
<button id="zoom9">zoom:9</button>
<button id="zoom16">zoom:16</button>
</span>
<script type="module" src="map.js"></script>
</body>
</html>