small fix to pmtiles loading

This commit is contained in:
Dave Conway-Jones 2023-11-29 11:42:26 +00:00
parent b881ca0f30
commit e2990d2130
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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);