small fix to pmtiles loading

master
Dave Conway-Jones 10 months ago
parent b881ca0f30
commit e2990d2130
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "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.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

@ -126,10 +126,8 @@ module.exports = function(RED) {
if (err) { if (err) {
if (err.code !== "EEXIST") { console.log(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); var o = Object.values(allPoints);
o.map(v => delete v.tout); o.map(v => delete v.tout);

Loading…
Cancel
Save