From d53a010f9adbbbbf0c6ac8c4fd449dbf20aea18d Mon Sep 17 00:00:00 2001 From: Slightly Cyberpunk Date: Fri, 7 Feb 2025 00:26:42 -0500 Subject: [PATCH] bugfix --- js/canvassing.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/canvassing.js b/js/canvassing.js index ddae5a1..45c1642 100644 --- a/js/canvassing.js +++ b/js/canvassing.js @@ -1063,22 +1063,22 @@ function loadCanvassers(force = false, canvass) { var markerTitle = "UserID: "+resp[i].userId; var newMarker = new L.marker([resp[i].latitude, resp[i].longitude], {icon: markerIcon, title: markerTitle}).addTo(map); -/* if( locList[i].count > 1) { - newMarker.bindTooltip(locList[i].count+"", +// if( locList[i].count > 1) { + newMarker.bindTooltip(resp[i].contacts+"", { permanent: true, direction: 'right', className: 'leaflet-voterCount' } ); - }*/ +// } /*var markerText = new L.Marker([locList[i].latitude, locList[i].longitude], { icon: new L.DivIcon({ className: 'my-div-icon', html: '---'+locList[i].count+'-------' }) });*/ - newMarker.on('click', voterList.bind(null, locList[i].latitude, locList[i].longitude)); + newMarker.on('click', voterList.bind(null, resp[i].latitude, resp[i].longitude)); } debug("End loadCanvassers"); -- 1.8.3.1