aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static/map.js
diff options
context:
space:
mode:
authorPjotr Prins2020-10-28 16:19:38 +0000
committerPjotr Prins2020-10-28 16:19:38 +0000
commite9ea11c5332668af16c0497bf2b578433b05b32f (patch)
tree3f2207588efb35977e09af0c7a4165c41161a967 /bh20simplewebuploader/static/map.js
parent89ccd3ce507ea2abad408a9df559aa3bbcc0e377 (diff)
downloadbh20-seq-resource-e9ea11c5332668af16c0497bf2b578433b05b32f.tar.gz
bh20-seq-resource-e9ea11c5332668af16c0497bf2b578433b05b32f.tar.lz
bh20-seq-resource-e9ea11c5332668af16c0497bf2b578433b05b32f.zip
List by country and added to map
Diffstat (limited to 'bh20simplewebuploader/static/map.js')
-rw-r--r--bh20simplewebuploader/static/map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bh20simplewebuploader/static/map.js b/bh20simplewebuploader/static/map.js
index cabb63d..c01659f 100644
--- a/bh20simplewebuploader/static/map.js
+++ b/bh20simplewebuploader/static/map.js
@@ -86,7 +86,7 @@ function buildMapMarkers(data) {
}}});
// ---- Build the marker list
for (let i = 0; i < data.length; i++) {
- let {"count": fastaCount, GPS, LocationLabel: label } = data[i];
+ let {"count": fastaCount, GPS, Location: location, LocationLabel: label } = data[i];
let countSeq = Number(fastaCount);
let coordinates = GPS.split(" ");
@@ -95,7 +95,7 @@ function buildMapMarkers(data) {
[lon, lat] = coordinates.map(parseFloat);
let point = L.point()
marker = new seqMarker([lat, lon],markerOptions={title: fastaCount+" sequences",sequences: countSeq});
- marker.bindPopup("<b>" + label + "</b><br/>" + "SARS-CoV-2<br/>sequences: " +fastaCount);
+ marker.bindPopup("<b>" + label + "</b><br/>" + "SARS-CoV-2<br/><a href=\"/location?label="+location+"\">sequences: " +fastaCount + "</a>");
markers.addLayer(marker);
}
}