Update worldmap.js

This commit is contained in:
Dave Conway-Jones 2023-11-29 14:31:25 +00:00
parent 08fd70fa3c
commit 4b0c979d27
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643

View File

@ -169,7 +169,7 @@ module.exports = function(RED) {
if (msg.payload.command.map.pmtiles.indexOf("http") !== 0) {
fs.symlink(msg.payload.command.map.pmtiles, __dirname+'/worldmap/'+msg.payload.command.map.name+'.pmtiles', 'file', (err) => {
if (err) {
if (err.code !== "EEXIST") { console.log(err); }
if (err.code !== "EEXIST") { node.log("PMTiles "+err.code,msg); }
}
});
msg.payload.command.map.pmtiles = msg.payload.command.map.name+'.pmtiles';