diff --git a/public/index.html b/public/index.html index 3d7b8492..5023ac7f 100644 --- a/public/index.html +++ b/public/index.html @@ -83,7 +83,7 @@ - + diff --git a/public/map.js b/public/map.js index a0bb8fa0..730b77db 100644 --- a/public/map.js +++ b/public/map.js @@ -297,6 +297,7 @@ } // Add numbered markers at each hop + var labelItems = []; positions.forEach((p, i) => { const isOrigin = i === 0 && p.isOrigin; const isLast = i === positions.length - 1 && positions.length > 1; @@ -305,7 +306,6 @@ const label = isOrigin ? 'Sender' : isLast ? 'Last Hop' : `Hop ${isOrigin ? i : i}`; if (isOrigin) { - // Double-ring origin marker L.circleMarker([p.lat, p.lon], { radius: radius + 4, fillColor: 'transparent', fillOpacity: 0, color: '#06b6d4', weight: 2, opacity: 0.6 }).addTo(routeLayer); @@ -316,8 +316,6 @@ fillOpacity: 0.9, color: '#fff', weight: 2 }).addTo(routeLayer); - marker.bindTooltip(`${i + 1}. ${p.name}`, { permanent: true, direction: 'top', className: 'route-tooltip' }); - const popupHtml = `