Clear Worldmap with inject

Hi again, there is a way that I can erase everything in the map? I have multiple markers, tracks, and drawings, but I need a button that clean all the map, i've tried to delete the markers but if i make another action with the same marker it draws the lines of the previous action.
Just when I make a change and deploy, the map reboots.

[{"id":"5cc9f26d.ec485c","type":"inject","z":"ed175afd.1609d8","name":"","topic":"","payload":"{\"command\":{\"clear\":true}}","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":400,"wires":[["89b9bc86.d241c"]]}]

Here is my flow, any help is welcome.

Taken from the nodes readme

To clear all markers from a layer, or an overlay from the map

msg.payload.command.clear = "name of your layer/overlay to remove";

Hi, thanks for the reply, I've tried it, but it does nothing, and when i put a msg.payload debug it gives "undefined"

Please let people know what version of Node, Node-RED and world-map you are using.

An example flow with test data is also useful so that other people can verify the issue.

Hi, my bad, I'm in Node-Red 0.20.5, and node-red-contrib-web-worldmap 2.0.12
This is what I need:
Selection_022
But i need that the second time, make another action, another route, but instead makes this:
Selection_023
And when I inject the msg.payload.command.clear = "mylayer";
the console gives this: TypeError: Cannot set property 'clear' of undefined
I'm i doing it wrong?

Thanks.

According to the docs the clear command takes a layer or overlay name. I think you gave it "true" in the original flow. You also sent a payload type of "str" which I'm not sure is correct.

Without the flow that creates the map, hard to debug it.

You have additional commands such as being able to remove the base layer or delete specific items.

So you may need to try a few more things?

I've tried remove the marker separately and removes it, but if i make the other action makes the same thing.
I also tried the remove layer with the msg.payload in command and it does nothing, thats what i tried with str, but same result.
And when i delete specific items, it removes it, but in the moment i inject the action of the marker, same result. The only way when it clean all the map is when i deploy the flow again, thanks anyway, i'll keep trying what the documentation says, maybe i'm ignoring something.

Well, if you can put together a small, stand-alone flow to create a map and overlay I'll happily test a couple of things as well if you like.

I'm using worldmap in dashboard with the examples I've found, in the question i'm putting my flow, i just need to clean all markers and tracks with a button and click the button of the marker again, but it doesn't reset with nothing, let me try to make a flow more simple and put it here. Thanks.

@TotallyInformation You can test with this flow, all i need is click the button that makes marker moves, clear marker and tracks, click again the button but with everything reset.

[{"id":"4a2f63d7.087e9c","type":"inject","z":"af1a7490.ec52c8","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":150,"y":60,"wires":[["355c729e.f1931e"]]},{"id":"30605bab.7a1c64","type":"ui_template","z":"af1a7490.ec52c8","group":"3f18712c.48a6ce","name":"WorldMap","order":0,"width":"24","height":"16","format":"<div ng-bind-html=\"msg.payload | trusted\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":430,"y":60,"wires":[[]]},{"id":"355c729e.f1931e","type":"template","z":"af1a7490.ec52c8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<iframe src=\"../worldmap\" height=500px width=\"100%\" ></iframe>","x":280,"y":60,"wires":[["30605bab.7a1c64"]]},{"id":"d07dc5aa.b35e48","type":"function","z":"af1a7490.ec52c8","name":"RecorrAuto","func":"var splittedText = [\n  [19.04358504630276, -98.2007896900177],\n  [19.04354955051086, -98.20073068141939],\n  [19.04350898388225, -98.20067167282106],\n  [19.043473488074085, -98.20059120655061],\n  [19.043448133920748, -98.20052146911623],\n  [19.04341770893163, -98.20046782493591],\n  [19.043377142270796, -98.20039808750154],\n  [19.043354323519715, -98.20035785436632],\n  [19.04333277247416, -98.20030555129051],\n  [19.04330741829932, -98.20025995373727],\n  [19.043287134956667, -98.20021972060206],\n  [19.04326431619322, -98.20017680525783],\n  [19.043238962007926, -98.20013657212259],\n  [19.043228820332736, -98.20009768009187],\n  [19.043200930722733, -98.20005208253862],\n  [19.04318318278667, -98.2000118494034],\n  [19.04315909629896, -98.19996491074563],\n  [19.04314261606851, -98.1999219954014],\n  [19.043118529574937, -98.19988176226616],\n  [19.043104584761245, -98.19984957575798],\n  [19.043085569104356, -98.1998120248318],\n  [19.043066553445264, -98.19977581501009],\n  [19.043042466940648, -98.19973424077035],\n  [19.04302852212057, -98.1997074186802],\n  [19.043014577299335, -98.19967523217203],\n  [19.043003167899272, -98.19964572787288],\n  [19.042979081385443, -98.1996135413647],\n  [19.04296133342564, -98.19956794381143],\n  [19.042944853175573, -98.19953709840776],\n  [19.042929640635585, -98.1995089352131],\n  [19.042928372923864, -98.19948211312295],\n  [19.042952459445047, -98.19945663213733],\n  [19.042977813674092, -98.19944858551025],\n  [19.04300443561043, -98.19942444562915],\n  [19.043032325253435, -98.19941371679309],\n  [19.04305641175954, -98.1993989646435],\n  [19.04308176597271, -98.1993842124939],\n  [19.043108387892367, -98.1993654370308],\n  [19.043146419198756, -98.1993466615677],\n  [19.043184450496444, -98.19932386279109],\n  [19.04321994636643, -98.19930240511897],\n  [19.04325290681032, -98.19928094744685],\n  [19.043289670374634, -98.19926351308824],\n  [19.043325166222115, -98.19924205541612],\n  [19.043359394353566, -98.19921523332597],\n  [19.04340376414308, -98.19919914007188],\n  [19.04343672455048, -98.19918036460878],\n  [19.04347855890428, -98.19915354251863],\n  [19.043507716174947, -98.19913208484651],\n  [19.043538141147565, -98.19911062717439],\n  [19.043576172355507, -98.19909051060678],\n  [19.043616738967692, -98.19907307624817],\n  [19.043644628507828, -98.19905027747154],\n  [19.043700407574022, -98.19902881979942],\n  [19.043739706450314, -98.19899797439577],\n  [19.043798020894773, -98.19896444678307],\n  [19.043848729090698, -98.1989309191704],\n  [19.04389563415812, -98.19890275597574],\n  [19.04394634232421, -98.19887459278107],\n  [19.043985641142285, -98.19885313510895],\n  [19.04402874306108, -98.19881960749626],\n  [19.044078183483556, -98.1988048553467],\n  [19.04412889159389, -98.19876864552499],\n  [19.044173261177722, -98.19873914122584],\n  [19.04422523696084, -98.19871634244922],\n  [19.044265803414405, -98.19868952035905],\n  [19.044322849972936, -98.1986613571644],\n  [19.044376093409888, -98.19864526391031],\n  [19.044420462927643, -98.19863453507425],\n  [19.04445849393342, -98.19866001605989],\n  [19.04448384793242, -98.19872036576272],\n  /*[19.04451554042573, -98.19877803325654],\n  [19.04453835901716, -98.19883301854135],\n  [19.044573854597616, -98.19889470934868],\n  [19.044601743976926, -98.1989496946335],\n  [19.04463216874902, -98.1990073621273],\n  [19.044662593515522, -98.1990583240986],\n  [19.044690482879922, -98.19911062717439],\n  [19.044715836843494, -98.19915488362314],\n  [19.04473738770948, -98.19919377565385],\n  [19.044762741665885, -98.19924339652064],\n  [19.044788095618415, -98.19929033517839],\n  [19.04481091417239, -98.19933861494066],\n  [19.04483373272321, -98.19937348365785],\n  [19.044860354361873, -98.19942310452463],\n  [19.044881905209117, -98.1994687020779],\n  [19.04490979453665, -98.19952905178071],\n  [19.044938951555903, -98.19958806037904],\n  [19.044971911658443, -98.1996524333954],\n  [19.04500994253786, -98.1997235119343],\n  [19.045042902626303, -98.19978386163713],\n  [19.04507713040354, -98.19985359907152],\n  [19.04509741352745, -98.19990053772928],\n  [19.04512657051374, -98.19995284080507],\n  [19.045146853631607, -98.20000112056734],\n  [19.045168404441636, -98.20005610585214],\n  [19.04518995524886, -98.2000842690468],\n  [19.045208970664685, -98.20012852549553],\n  [19.04522545068995, -98.20016071200371]*/\n];\n\nvar arrStringFy = \"\"\n\nfor (var i = 0; i < splittedText.length; i++) {\n    (function(i) {\n        setTimeout(function() {\n            arrStringFy = splittedText[i];\n            msg.payload = arrStringFy\n            node.send(msg)\n        }, 500 * i);\n    })(i);\n};","outputs":1,"noerr":0,"x":230,"y":120,"wires":[["975164d1.8ce998"]]},{"id":"9eb040f7.845a8","type":"ui_button","z":"af1a7490.ec52c8","name":"","group":"3f18712c.48a6ce","order":1,"width":"3","height":"1","passthru":false,"label":"#5","tooltip":"","color":"","bgcolor":"","icon":"domain","payload":"1","payloadType":"str","topic":"","x":90,"y":160,"wires":[["61734660.1c5538","d07dc5aa.b35e48"]]},{"id":"61734660.1c5538","type":"function","z":"af1a7490.ec52c8","name":"GeoCerca","func":"msg.payload = {\n    \"name\": \"InventotecaGeo\",\n    \"color\": \"#0e22c8\",\n    \"fillColor\": \"#0e22c8\",\n    \"area\":\n    [\n        [19.04354955051086, -98.200843334198], \n        [19.04285738105162, -98.19948077201845], \n        [19.043686462809234, -98.1989872455597], \n        [19.043686462809234, -98.1989872455597], \n        [19.04453075282037, -98.20062071084979], \n        [19.044469903233445, -98.20065826177598], \n        [19.0436661795129, -98.1990918517113], \n        [19.043278260993475, -98.19932520389558], \n        [19.042963868848595, -98.19949954748155], \n        [19.043633219151058, -98.20081651210786]\n    ]\n\n}\nreturn msg;","outputs":1,"noerr":0,"x":230,"y":160,"wires":[["cf5e9d17.ea955"]]},{"id":"975164d1.8ce998","type":"function","z":"af1a7490.ec52c8","name":"ConfigAuto","func":"var lat = msg.payload[0]\nvar lng = msg.payload[1]\n\nmsg.payload = {\n  \"name\": \"Jason\",\n  \"iconColor\": \"#0e22c8\",\n  \"color\": \"#0e22c8\",\n  \"icon\": \"fa-map-marker\",\n  \"lat\": lat,\n  \"lon\": lng,\n  \"layer\":\"unkwon\",\n  \"draggable\": false,\n  \"width\": 10\n}\n\nreturn msg","outputs":1,"noerr":0,"x":390,"y":120,"wires":[["d3d3224c.0f24c","cf5e9d17.ea955"]]},{"id":"d3d3224c.0f24c","type":"worldmap-tracks","z":"af1a7490.ec52c8","name":"LineaAuto","depth":"1000","layer":"combined","x":540,"y":120,"wires":[["cf5e9d17.ea955"]]},{"id":"cf5e9d17.ea955","type":"worldmap","z":"af1a7490.ec52c8","name":"MapIn","lat":"19.0433548","lon":"-98.2005729","zoom":"17","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"true","path":"/worldmap","x":690,"y":160,"wires":[]},{"id":"3f18712c.48a6ce","type":"ui_group","z":"","name":"Map","tab":"f58c551a.bbe658","disp":true,"width":"24","collapse":false},{"id":"f58c551a.bbe658","type":"ui_tab","z":"","name":"Map","icon":"map","disabled":false,"hidden":false}]

Let me know if you need something else. Thanks.

The overlays don't appear to have been set correctly:

image

Which may be why they don't clear?

Yup. I cleared one by passing "unknown" as the layer name,

Here is where you name one of the layers:

image

Your other function doesn't include the "layer" name so comes out as "unknown".

1 Like

Hi,

if you send a msg.payload with just the name and deleted set true to both the track node and the map node it will delete the track and name of that point.
eg - msg.payload = {name:"Jason", deleted:true};

The message to clear the whole layer in your example is msg.payload = {command:{clear:"unkwon" }};

So combining those gives
msg.payload = {name:"Jason", deleted:true, command:{clear:"unkwon" }};

But yes - the layer delete does not delete things from the track node - or rather the track node doesn't recognise that command which would be sensible in order to remove multiple tracks in one go. So yes I have now fixed the code - version 2.0.17 on npm
Your example with a delete button as per below

[{"id":"44274ed0.64f4b","type":"inject","z":"439238bf.9f6608","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":1120,"wires":[["b399298f.ba98a8"]]},{"id":"b399298f.ba98a8","type":"function","z":"439238bf.9f6608","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":1120,"wires":[["250083a6.583d9c"]]},{"id":"250083a6.583d9c","type":"template","z":"439238bf.9f6608","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<table style=\"font-family:Arial;width:100%;border:1px solid #ccc;border-collapse: collapse;color:#667677;\"><thead style=\"border:1px solid #ccc;background:#6a9ef2;color:white !important; height:50px;padding:2px;\"><tr style=\"border:1px solid #ccc;\"><th class=\"string\">applicationHash</th><th class=\"string\">applicationName</th><th class=\"string\">applicationTypeName</th><th class=\"string\">applicationTypeHash</th><th class=\"string\">objType</th></tr></thead><tbody style=\"\"><tr style=\"border:1px solid #ccc;\"><td style=\"border:1px solid #ccc;text-align:center;padding:3px;\" class=\"string\">937189849</td><td style=\"border:1px solid #ccc;text-align:center;padding:3px;\" class=\"string\">CKT4 Compressor Power</td><td style=\"border:1px solid #ccc;text-align:center;padding:3px;\" class=\"string\">Log Group</td><td style=\"border:1px solid #ccc;text-align:center;padding:3px;\" class=\"string\">73</td><td style=\"border:1px solid #ccc;text-align:center;padding:3px;\" class=\"string\">Locator</td></tr></tbody></table>\n\n","output":"str","x":480,"y":1120,"wires":[["10292d0e.516f93"]]},{"id":"10292d0e.516f93","type":"ui_template","z":"439238bf.9f6608","group":"8e4ee977.8c5d28","name":"","order":28,"width":"9","height":"6","format":"<div ng-bind-html=\"msg.payload | trusted\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":640,"y":1120,"wires":[[]]},{"id":"2794e35.915601c","type":"inject","z":"439238bf.9f6608","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"","x":290,"y":1240,"wires":[["9d55f65a.b50a58"]]},{"id":"b205d052.545b5","type":"ui_template","z":"439238bf.9f6608","group":"814f46d6.fd16a8","name":"WorldMap","order":0,"width":"24","height":"16","format":"<div ng-bind-html=\"msg.payload | trusted\"></div>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":570,"y":1240,"wires":[[]]},{"id":"9d55f65a.b50a58","type":"template","z":"439238bf.9f6608","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<iframe src=\"../worldmap\" height=500px width=\"100%\" ></iframe>","x":420,"y":1240,"wires":[["b205d052.545b5"]]},{"id":"36996e34.5c25f2","type":"function","z":"439238bf.9f6608","name":"RecorrAuto","func":"var splittedText = [\n  [19.04358504630276, -98.2007896900177],\n  [19.04354955051086, -98.20073068141939],\n  [19.04350898388225, -98.20067167282106],\n  [19.043473488074085, -98.20059120655061],\n  [19.043448133920748, -98.20052146911623],\n  [19.04341770893163, -98.20046782493591],\n  [19.043377142270796, -98.20039808750154],\n  [19.043354323519715, -98.20035785436632],\n  [19.04333277247416, -98.20030555129051],\n  [19.04330741829932, -98.20025995373727],\n  [19.043287134956667, -98.20021972060206],\n  [19.04326431619322, -98.20017680525783],\n  [19.043238962007926, -98.20013657212259],\n  [19.043228820332736, -98.20009768009187],\n  [19.043200930722733, -98.20005208253862],\n  [19.04318318278667, -98.2000118494034],\n  [19.04315909629896, -98.19996491074563],\n  [19.04314261606851, -98.1999219954014],\n  [19.043118529574937, -98.19988176226616],\n  [19.043104584761245, -98.19984957575798],\n  [19.043085569104356, -98.1998120248318],\n  [19.043066553445264, -98.19977581501009],\n  [19.043042466940648, -98.19973424077035],\n  [19.04302852212057, -98.1997074186802],\n  [19.043014577299335, -98.19967523217203],\n  [19.043003167899272, -98.19964572787288],\n  [19.042979081385443, -98.1996135413647],\n  [19.04296133342564, -98.19956794381143],\n  [19.042944853175573, -98.19953709840776],\n  [19.042929640635585, -98.1995089352131],\n  [19.042928372923864, -98.19948211312295],\n  [19.042952459445047, -98.19945663213733],\n  [19.042977813674092, -98.19944858551025],\n  [19.04300443561043, -98.19942444562915],\n  [19.043032325253435, -98.19941371679309],\n  [19.04305641175954, -98.1993989646435],\n  [19.04308176597271, -98.1993842124939],\n  [19.043108387892367, -98.1993654370308],\n  [19.043146419198756, -98.1993466615677],\n  [19.043184450496444, -98.19932386279109],\n  [19.04321994636643, -98.19930240511897],\n  [19.04325290681032, -98.19928094744685],\n  [19.043289670374634, -98.19926351308824],\n  [19.043325166222115, -98.19924205541612],\n  [19.043359394353566, -98.19921523332597],\n  [19.04340376414308, -98.19919914007188],\n  [19.04343672455048, -98.19918036460878],\n  [19.04347855890428, -98.19915354251863],\n  [19.043507716174947, -98.19913208484651],\n  [19.043538141147565, -98.19911062717439],\n  [19.043576172355507, -98.19909051060678],\n  [19.043616738967692, -98.19907307624817],\n  [19.043644628507828, -98.19905027747154],\n  [19.043700407574022, -98.19902881979942],\n  [19.043739706450314, -98.19899797439577],\n  [19.043798020894773, -98.19896444678307],\n  [19.043848729090698, -98.1989309191704],\n  [19.04389563415812, -98.19890275597574],\n  [19.04394634232421, -98.19887459278107],\n  [19.043985641142285, -98.19885313510895],\n  [19.04402874306108, -98.19881960749626],\n  [19.044078183483556, -98.1988048553467],\n  [19.04412889159389, -98.19876864552499],\n  [19.044173261177722, -98.19873914122584],\n  [19.04422523696084, -98.19871634244922],\n  [19.044265803414405, -98.19868952035905],\n  [19.044322849972936, -98.1986613571644],\n  [19.044376093409888, -98.19864526391031],\n  [19.044420462927643, -98.19863453507425],\n  [19.04445849393342, -98.19866001605989],\n  [19.04448384793242, -98.19872036576272],\n  /*[19.04451554042573, -98.19877803325654],\n  [19.04453835901716, -98.19883301854135],\n  [19.044573854597616, -98.19889470934868],\n  [19.044601743976926, -98.1989496946335],\n  [19.04463216874902, -98.1990073621273],\n  [19.044662593515522, -98.1990583240986],\n  [19.044690482879922, -98.19911062717439],\n  [19.044715836843494, -98.19915488362314],\n  [19.04473738770948, -98.19919377565385],\n  [19.044762741665885, -98.19924339652064],\n  [19.044788095618415, -98.19929033517839],\n  [19.04481091417239, -98.19933861494066],\n  [19.04483373272321, -98.19937348365785],\n  [19.044860354361873, -98.19942310452463],\n  [19.044881905209117, -98.1994687020779],\n  [19.04490979453665, -98.19952905178071],\n  [19.044938951555903, -98.19958806037904],\n  [19.044971911658443, -98.1996524333954],\n  [19.04500994253786, -98.1997235119343],\n  [19.045042902626303, -98.19978386163713],\n  [19.04507713040354, -98.19985359907152],\n  [19.04509741352745, -98.19990053772928],\n  [19.04512657051374, -98.19995284080507],\n  [19.045146853631607, -98.20000112056734],\n  [19.045168404441636, -98.20005610585214],\n  [19.04518995524886, -98.2000842690468],\n  [19.045208970664685, -98.20012852549553],\n  [19.04522545068995, -98.20016071200371]*/\n];\n\nvar arrStringFy = \"\"\n\nfor (var i = 0; i < splittedText.length; i++) {\n    (function(i) {\n        setTimeout(function() {\n            arrStringFy = splittedText[i];\n            msg.payload = arrStringFy\n            node.send(msg)\n        }, 500 * i);\n    })(i);\n};","outputs":1,"noerr":0,"x":370,"y":1300,"wires":[["1703e9c3.ea7cd6"]]},{"id":"4aa2f5f.c91b80c","type":"ui_button","z":"439238bf.9f6608","name":"","group":"814f46d6.fd16a8","order":1,"width":"3","height":"1","passthru":false,"label":"#5","tooltip":"","color":"","bgcolor":"","icon":"domain","payload":"1","payloadType":"str","topic":"","x":230,"y":1340,"wires":[["f2297d80.42226","36996e34.5c25f2"]]},{"id":"f2297d80.42226","type":"function","z":"439238bf.9f6608","name":"GeoCerca","func":"msg.payload = {\n    \"name\": \"InventotecaGeo\",\n    \"color\": \"#0e22c8\",\n    \"fillColor\": \"#0e22c8\",\n    \"area\":\n    [\n        [19.04354955051086, -98.200843334198], \n        [19.04285738105162, -98.19948077201845], \n        [19.043686462809234, -98.1989872455597], \n        [19.043686462809234, -98.1989872455597], \n        [19.04453075282037, -98.20062071084979], \n        [19.044469903233445, -98.20065826177598], \n        [19.0436661795129, -98.1990918517113], \n        [19.043278260993475, -98.19932520389558], \n        [19.042963868848595, -98.19949954748155], \n        [19.043633219151058, -98.20081651210786]\n    ]\n\n}\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":1340,"wires":[["4804d7eb.d84fc8"]]},{"id":"1703e9c3.ea7cd6","type":"function","z":"439238bf.9f6608","name":"ConfigAuto","func":"var lat = msg.payload[0]\nvar lng = msg.payload[1]\n\nmsg.payload = {\n  \"name\": \"Jason\",\n  \"iconColor\": \"#0e22c8\",\n  \"color\": \"#0e22c8\",\n  \"icon\": \"fa-map-marker\",\n  \"lat\": lat,\n  \"lon\": lng,\n  \"layer\":\"unkwon\",\n  \"draggable\": false,\n  \"width\": 10\n}\n\nreturn msg","outputs":1,"noerr":0,"x":530,"y":1300,"wires":[["aa974a9f.d0c148","4804d7eb.d84fc8"]]},{"id":"aa974a9f.d0c148","type":"worldmap-tracks","z":"439238bf.9f6608","name":"LineaAuto","depth":"1000","layer":"combined","x":720,"y":1280,"wires":[["4804d7eb.d84fc8"]]},{"id":"4804d7eb.d84fc8","type":"worldmap","z":"439238bf.9f6608","name":"MapIn","lat":"19.0433548","lon":"-98.2005729","zoom":"17","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"true","path":"/worldmap","x":830,"y":1340,"wires":[]},{"id":"680bed52.805484","type":"function","z":"439238bf.9f6608","name":"Remove layer","func":"\nmsg.payload = {command:{clear:\"unkwon\"}};\nreturn msg;","outputs":1,"noerr":0,"x":460,"y":1180,"wires":[["4804d7eb.d84fc8","aa974a9f.d0c148"]]},{"id":"47f15b29.6c8164","type":"ui_button","z":"439238bf.9f6608","name":"","group":"814f46d6.fd16a8","order":1,"width":"3","height":"1","passthru":false,"label":"Delete","tooltip":"","color":"","bgcolor":"","icon":"domain","payload":"1","payloadType":"str","topic":"","x":210,"y":1180,"wires":[["680bed52.805484"]]},{"id":"8e4ee977.8c5d28","type":"ui_group","z":"","name":"Default","tab":"e6777ecd.b6d0f","disp":true,"width":"9","collapse":false},{"id":"814f46d6.fd16a8","type":"ui_group","z":"","name":"Map","tab":"997fe373.571f5","disp":true,"width":"24","collapse":false},{"id":"e6777ecd.b6d0f","type":"ui_tab","z":"","name":"Home","icon":"mi-videogame_asset","order":1,"disabled":false,"hidden":false},{"id":"997fe373.571f5","type":"ui_tab","z":"","name":"Map","icon":"map","disabled":false,"hidden":false}]

Thank you, so i have to update my npm module so it can works?

the first few example I gave show how it could be done without... but yes - update will make it work as we expect.

Ok, thank you very much, and for the quick solution.