aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static/map.js
diff options
context:
space:
mode:
authorPjotr Prins2020-07-17 10:32:42 +0100
committerPjotr Prins2020-07-17 10:32:42 +0100
commit22dc44b243674f3acb6ef464985f333cdc983824 (patch)
tree41b55b1b9670807503c52512406be44b5dab9985 /bh20simplewebuploader/static/map.js
parentfdb534f551e11ba5d43bec4aeba2bab4d141700b (diff)
downloadbh20-seq-resource-22dc44b243674f3acb6ef464985f333cdc983824.tar.gz
bh20-seq-resource-22dc44b243674f3acb6ef464985f333cdc983824.tar.lz
bh20-seq-resource-22dc44b243674f3acb6ef464985f333cdc983824.zip
Map: show FASTA count
Diffstat (limited to 'bh20simplewebuploader/static/map.js')
-rw-r--r--bh20simplewebuploader/static/map.js13
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);
}
}