diff options
-rw-r--r-- | bh20simplewebuploader/static/map.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bh20simplewebuploader/static/map.js b/bh20simplewebuploader/static/map.js index 36208b5..5ecf95d 100644 --- a/bh20simplewebuploader/static/map.js +++ b/bh20simplewebuploader/static/map.js @@ -20,17 +20,6 @@ function drawMap(){ return response.json(); }) .then(data => { - /* - for (var i=0; i<data.length;i++) { - gps=data[i]["GPS"].split(" ") - var circle = L.circle([gps[1], gps[0]], { - color: 'red', - fillColor: '#f03', - fillOpacity: 0.5, - radius: parseInt(data[i]["count"]) //not working for whatever reason - }).addTo(mymap); - } - */ updateMapMarkers(data); }); @@ -53,7 +42,7 @@ function updateMapMarkers(data) { [lon, lat] = coordinates.map(parseFloat); let point = L.point() marker = (L.marker([lat, lon])); - // .bindPopup("<b>" + label + "</b><br/>" + "FastaCount: " +fastaCount)); + marker.bindPopup("<b>" + label + "</b><br/>" + "FastaCount: " +fastaCount); markers.addLayer(marker); } } |