hide other variables from popup

to close #140
This commit is contained in:
Dave Conway-Jones 2020-07-13 09:30:44 +01:00
parent 444c1f1fcf
commit 80a03f99ab
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
2 changed files with 4 additions and 1 deletions

View File

@ -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",

View File

@ -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") {