From 0e4cb2c14b62ed4f39271c6006a99cea954fc688 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 18 Jul 2020 11:00:35 +0100 Subject: Map: cleanup CSS --- bh20simplewebuploader/static/map.js | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'bh20simplewebuploader/static/map.js') diff --git a/bh20simplewebuploader/static/map.js b/bh20simplewebuploader/static/map.js index 81b6246..dfe88f9 100644 --- a/bh20simplewebuploader/static/map.js +++ b/bh20simplewebuploader/static/map.js @@ -45,13 +45,12 @@ seqMarker = L.Marker.extend({ function updateMapMarkers(data) { let markers = L.markerClusterGroup({ - iconCreateFunction: function (cluster) { var theseMarkers = cluster.getAllChildMarkers(); //// -- this is the array of each marker in the cluster. sumCount = 0; for (var i = 0; i < theseMarkers.length; i++) { - console.log(theseMarkers[i]); + // console.log(theseMarkers[i]); sumCount += theseMarkers[i].options.sequences; } @@ -59,24 +58,9 @@ function updateMapMarkers(data) { return L.divIcon({ html: sumCount, - className: 'cluster digits-' + digits, - iconSize: null - }); - }, - - pointToLayer: function (feature, latlng) { - return L.circleMarker(latlng, { - opacity: 1, - color: getSColor(10), - weight: getSwieght(10), - fillColor: getColor(10), - fillOpacity: .3, - radius: getRad(10), - pane: 'circlesIIOM' + className: 'my-custom-icon my-custom-icon-'+digits, }); - }, - }); for (let i = 0; i < data.length; i++) { let {"count": fastaCount, GPS, LocationLabel: label } = data[i]; -- cgit v1.2.3