-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (153 loc) · 4.35 KB
/
index.html
File metadata and controls
176 lines (153 loc) · 4.35 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MapLibre GL LiDAR - Examples</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #1a5f7a 0%, #159895 100%);
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 900px;
margin: 0 auto;
}
h1 {
color: white;
text-align: center;
margin-bottom: 10px;
font-size: 2.5rem;
}
.subtitle {
color: rgba(255, 255, 255, 0.9);
text-align: center;
margin-bottom: 40px;
font-size: 1.1rem;
}
.examples-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.example-card {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
color: inherit;
display: block;
}
.example-card:hover {
transform: translateY(-4px);
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}
.example-card.featured {
grid-column: 1 / -1;
background: linear-gradient(135deg, #0d4f5e 0%, #1a5f7a 100%);
color: white;
}
.example-card.featured h2 {
color: white;
}
.example-card.featured p {
color: rgba(255, 255, 255, 0.9);
}
.example-card.featured .tag {
background: rgba(255, 255, 255, 0.2);
color: white;
}
.example-card h2 {
color: #333;
margin-bottom: 8px;
font-size: 1.3rem;
}
.example-card p {
color: #666;
font-size: 0.95rem;
line-height: 1.5;
margin-bottom: 16px;
}
.example-card .tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag {
background: #f0f0f0;
color: #555;
padding: 4px 10px;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
}
.tag.vanilla { background: #fff3e0; color: #ef6c00; }
.tag.react { background: #e1f5fe; color: #0277bd; }
.tag.typescript { background: #e3f2fd; color: #1565c0; }
.tag.lidar { background: #e8f5e9; color: #2e7d32; }
.tag.viewer { background: #fce4ec; color: #c2185b; }
.footer {
text-align: center;
margin-top: 40px;
color: rgba(255, 255, 255, 0.8);
}
.footer a {
color: white;
text-decoration: none;
font-weight: 500;
}
.footer a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<h1>MapLibre GL LiDAR</h1>
<p class="subtitle">A MapLibre GL JS plugin for visualizing LiDAR point clouds using deck.gl</p>
<div class="examples-grid">
<a href="./viewer/index.html" class="example-card featured">
<h2>Online Viewer</h2>
<p>Load and visualize any COPC point cloud by entering a URL. Supports URL parameters for direct linking.</p>
<div class="tags">
<span class="tag viewer">Viewer</span>
<span class="tag lidar">COPC</span>
</div>
</a>
<a href="./examples/basic/index.html" class="example-card">
<h2>Basic Example</h2>
<p>Simple vanilla TypeScript example showing how to load and visualize LiDAR point clouds with the GUI control.</p>
<div class="tags">
<span class="tag vanilla">Vanilla JS</span>
<span class="tag typescript">TypeScript</span>
<span class="tag lidar">LiDAR</span>
</div>
</a>
<a href="./examples/react/index.html" class="example-card">
<h2>React Example</h2>
<p>React example demonstrating the React wrapper component and custom hooks for LiDAR visualization.</p>
<div class="tags">
<span class="tag react">React</span>
<span class="tag typescript">TypeScript</span>
<span class="tag lidar">LiDAR</span>
</div>
</a>
</div>
<div class="footer">
<p>
<a href="https://github.com/opengeos/maplibre-gl-lidar">GitHub</a> ·
<a href="https://www.npmjs.com/package/maplibre-gl-lidar">npm</a>
</p>
</div>
</div>
</body>
</html>