|
165 | 165 | .pharma-marker.compchem { background: #7c3aed; } |
166 | 166 | .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; } |
167 | 167 | .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; } |
169 | 168 | .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; } |
170 | 169 | /* Friend variant: bright blue, triangle silhouette via clip-path */ |
171 | 170 | .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 |
5329 | 5328 | }); |
5330 | 5329 | Object.keys(hubs).forEach(name => { |
5331 | 5330 | 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 | + ); |
5341 | 5338 | }); |
5342 | 5339 | return group; |
5343 | 5340 | } |
|
0 commit comments