From 80a03f99ab1cd130c325daf162e9be962c709b11 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 13 Jul 2020 09:30:44 +0100 Subject: [PATCH] hide other variables from popup to close #140 --- package.json | 2 +- worldmap/worldmap.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 55b0416..fc1adbd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "cgi": "0.3.1", "compression": "^1.7.4", "express": "^4.16.4", - "sockjs": "^0.3.19" + "sockjs": "~0.3.20" }, "repository": { "type": "git", diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 42f11fc..25a6258 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -1572,6 +1572,9 @@ function setMarker(data) { if (data.dashArray) { delete data.dashArray; } if (data.fill) { delete data.fill; } if (data.draggable) { delete data.draggable; } + if (data.hasOwnProperty("clickable")) { delete data.clickable; } + if (data.hasOwnProperty("fillColor")) { delete data.fillColor; } + if (data.hasOwnProperty("radius")) { delete data.radius; } for (var i in data) { if ((i != "name") && (i != "length")) { if (typeof data[i] === "object") {