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}]