about summary refs log tree commit diff
path: root/bh20simplewebuploader/static/map.js
diff options
context:
space:
mode:
authorPjotr Prins2020-07-18 11:00:35 +0100
committerPjotr Prins2020-07-18 11:00:35 +0100
commit0e4cb2c14b62ed4f39271c6006a99cea954fc688 (patch)
tree90d59ad87e5ea81e7ec388b1adf230a2a0bcafca /bh20simplewebuploader/static/map.js
parentff8b4b56227c54c19c94c7d9563e010efe7c4299 (diff)
downloadbh20-seq-resource-0e4cb2c14b62ed4f39271c6006a99cea954fc688.tar.gz
bh20-seq-resource-0e4cb2c14b62ed4f39271c6006a99cea954fc688.tar.lz
bh20-seq-resource-0e4cb2c14b62ed4f39271c6006a99cea954fc688.zip
Map: cleanup CSS
Diffstat (limited to 'bh20simplewebuploader/static/map.js')
-rw-r--r--bh20simplewebuploader/static/map.js20
1 files changed, 2 insertions, 18 deletions
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];