Skip to content

Commit 06434f9

Browse files
Refactor station marker to hover
1 parent 0b5b5d4 commit 06434f9

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

index.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@
165165
.pharma-marker.compchem { background: #7c3aed; }
166166
.lab-marker { background: #dc2626; color: white; font-size: 11px; font-weight: 700; width: 18px; height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.3); border: 2px solid white; }
167167
.ml-marker { background: #06b6d4; color: white; font-size: 10px; font-weight: 700; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.3); border: 2px solid white; }
168-
.rail-hub { background: #0f172a; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.35); white-space: nowrap; }
169168
.person-marker { background: #ec4899; color: white; font-size: 13px; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.3); border: 2px solid white; line-height: 1; }
170169
/* Friend variant: bright blue, triangle silhouette via clip-path */
171170
.person-marker.friend { background: #2563eb; border-radius: 0; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.4); width: 14px; height: 14px; font-size: 0; }
@@ -5329,15 +5328,13 @@ <h3 style="font-size:13px;text-transform:uppercase;letter-spacing:0.5px;color:va
53295328
});
53305329
Object.keys(hubs).forEach(name => {
53315330
const h = hubs[name];
5332-
L.marker([h.lat, h.lng], {
5333-
icon: L.divIcon({
5334-
className: 'label-icon',
5335-
html: `<div class="rail-hub">◆ ${escape(name)}</div>`,
5336-
iconSize: null,
5337-
iconAnchor: [8, 8]
5338-
}),
5339-
zIndexOffset: 200
5340-
}).addTo(group).bindTooltip('Hub terminal — station times are measured to here', { direction: 'top' });
5331+
L.circleMarker([h.lat, h.lng], {
5332+
radius: radius + 3, color: '#ffffff', weight: 2,
5333+
fillColor: '#0f172a', fillOpacity: 1
5334+
}).addTo(group).bindTooltip(
5335+
`<b>${escape(name)}</b><br><span style="color:#94a3b8">Hub terminal — times are measured to here</span>`,
5336+
{ direction: 'top' }
5337+
);
53415338
});
53425339
return group;
53435340
}

0 commit comments

Comments
 (0)