fix: map markers use role color always, not gray when hash_size is missing

Nodes without hash_size (older instances, no adverts seen) were showing
as gray #888 instead of their role color. Now always uses ROLE_STYLE color.
This commit is contained in:
you
2026-03-23 19:21:30 +00:00
parent 49e6d6d0b7
commit ebcdb994ef
+1 -1
View File
@@ -66,7 +66,7 @@
var hs = node.hash_size || 1;
// Show the short mesh hash ID (first N bytes of pubkey, uppercased)
var shortHash = node.public_key ? node.public_key.slice(0, hs * 2).toUpperCase() : '??';
var bgColor = node.hash_size ? s.color : '#888';
var bgColor = s.color;
var html = '<div style="background:' + bgColor + ';color:#fff;font-weight:bold;font-size:11px;padding:2px 5px;border-radius:3px;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,0.4);text-align:center;line-height:1.2;white-space:nowrap;">' +
shortHash + '</div>';
return L.divIcon({