From e2990d2130ac4178c5aa52172c16d52c44238728 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 29 Nov 2023 11:42:26 +0000 Subject: [PATCH] small fix to pmtiles loading --- package.json | 2 +- worldmap.js | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8f05e3e..954c2a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "4.5.0", + "version": "4.5.1", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "@turf/bezier-spline": "~6.5.0", diff --git a/worldmap.js b/worldmap.js index 9cb949c..4e8859f 100644 --- a/worldmap.js +++ b/worldmap.js @@ -126,10 +126,8 @@ module.exports = function(RED) { if (err) { if (err.code !== "EEXIST") { console.log(err); } } - else { - client.write(JSON.stringify({command: {map: {name:pmtiles[p].split('.')[0], pmtiles:pmtiles[p] }}})); - } }) + client.write(JSON.stringify({command: {map: {name:pmtiles[p].split('.')[0], pmtiles:pmtiles[p] }}})); } var o = Object.values(allPoints); o.map(v => delete v.tout);