Adjust map marker sizing and tile opacity (#18)

This commit is contained in:
l5y
2025-09-13 15:27:23 +02:00
committed by GitHub
parent 77ded7624b
commit 1dbd677f96
+4 -2
View File
@@ -40,6 +40,7 @@
input[type="text"] { padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; }
.legend { background: #fff; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; line-height: 18px; }
.legend span { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: middle; }
#map .leaflet-tile { filter: opacity(70%); }
</style>
</head>
<body>
@@ -187,11 +188,12 @@
const color = roleColors[n.role] || '#3388ff';
const marker = L.circleMarker([lat, lon], {
radius: 6,
radius: 12,
color: '#000',
weight: 1,
fillColor: color,
fillOpacity: 1
fillOpacity: 0.7,
opacity: 0.7
});
const lines = [
`<b>${n.short_name || ''}</b> <span class="mono">${n.node_id || ''}</span>`,