diff --git a/public/index.html b/public/index.html
index 4a6565b8..82e7e3b6 100644
--- a/public/index.html
+++ b/public/index.html
@@ -83,7 +83,7 @@
-
+
diff --git a/public/map.js b/public/map.js
index 3bdea471..9c47b374 100644
--- a/public/map.js
+++ b/public/map.js
@@ -8,7 +8,7 @@
let clusterGroup = null;
let nodes = [];
let observers = [];
- let filters = { repeater: true, companion: true, room: true, sensor: true, observer: true, lastHeard: '30d', neighbors: false, clusters: false };
+ let filters = { repeater: true, companion: true, room: true, sensor: true, observer: true, lastHeard: '30d', neighbors: false, clusters: false, hashLabels: localStorage.getItem('meshcore-map-hash-labels') !== 'false' };
let wsHandler = null;
let heatLayer = null;
let userHasMoved = false;
@@ -60,6 +60,20 @@
});
}
+ function makeRepeaterLabelIcon(node) {
+ var hashSize = node.hash_size || 1;
+ var s = ROLE_STYLE['repeater'] || ROLE_STYLE.companion;
+ var label = hashSize + 'B';
+ var html = '
' + label + '
';
+ return L.divIcon({
+ html: html,
+ className: 'meshcore-marker meshcore-label-marker',
+ iconSize: null,
+ iconAnchor: [14, 12],
+ popupAnchor: [0, -12],
+ });
+ }
+
function init(container) {
container.innerHTML = `
@@ -79,6 +93,7 @@