-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (33 loc) · 1.79 KB
/
index.html
File metadata and controls
37 lines (33 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/>
<style>
body { margin: 0; padding: 0; font-family: sans-serif; }
#map { height: 100vh; width: 100%; }
#controls { position: absolute; top: 10px; left: 10px; z-index: 1000; background: white; padding: 10px; border: 1px solid #999; }
.location-marker-icon { display: flex; justify-content: center; align-items: center; font-weight: bold; color: white; background-color: #A00; border-radius: 50%; border: 2px solid white; width: 28px; height: 28px; font-size: 12px; }
.edge-weight-label { background: rgba(255, 255, 255, 0.8); border-radius: 4px; padding: 2px 5px; font-weight: bold; color: #000; text-align: center; }
.edge-tooltip { background: rgba(255, 255, 255, 0.95) !important; border: 1px solid #ddd !important; border-radius: 6px !important; font-weight: bold !important; font-size: 11px !important; box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important; }
</style>
</head>
<body>
<div id="map"></div>
<div id="controls">
<label>
<input type="checkbox" id="weightToggle" checked> Show Edge Weights
</label>
<div style="font-size: 11px; color: #666; margin-top: 5px;">
Make sure you zoom in if you don't see it
</div>
<div style="margin-top: 15px;">
<button id="colorToggle" style="padding: 5px 10px; font-size: 12px; cursor: pointer; background: #f0f0f0; border: 1px solid #999; border-radius: 3px;">
Use Monotone Blue
</button>
</div>
</div>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<script src="visualizer.js"></script>
</body>
</html>