small fix to pmtiles loading
This commit is contained in:
parent
b881ca0f30
commit
e2990d2130
@ -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…
Reference in New Issue
Block a user