Node-RED Worldmap Popup's requiring right click for button to function

Hi, I am working on a NR project to manage input devices across multiple sites. To do this I am using the Worldmap nodes and generally speaking everything is working correctly. The popups pop up when they are supposed to and I use the context menu functionality to add things to my display.

The issue I am having is that I have added a button into the popup as can be seen in the image below but it currently will not work unless I first right click and bring up a context menu. I have tried to forcefully set the coords when the popup is clicked but that did not seem to resolve the issue.

Any input would be much appreciated.

Hello and welcome to the forum.

All we see is a picture... hard to diagnose the inner workings.

Perhaps you can "popup" some flow details that we can click on? :wink:

There isn't much to the inner workings (at least in regards to the right click and pop up functionality) and to share the whole system would include a lot of unrelated material so I will try to only reference the relevant details. Both the popup and the context menu are setup when the map is initialised one using the setup map function while the other is done in the setup menu function.

The code used for the menu is:

The code used for the popup is:

mapMsg.payload.popup =  '<div class="content">' +
                    '<p>No. of Alarms : ' + Testval + '</p>' +
                    '<button name="Snap to Location" style=" color:red; width:100%;" onmouseover=\'addToForm("parlon",'+location.Icon_loc.coordinates[0][0]+'), addToForm("parlat",'+location.Icon_loc.coordinates[0][1]+')\' onclick=\'feedback(this.name,"$form",null,true)\' >Snap to Location</button>'
                '</div>';

The reason for all the location references is that after the right click required to get it to work the location data passed was that of the right click location and not of the icon. I am assuming that if I could set the value that right click sets on init then I can operate the system without having to first right click. If that makes sense.

In both cases the 'feedback' is handled by the following flow.

[{"id":"d83276af.9cc65","type":"tab","label":"Map event processing","disabled":false,"info":""},{"id":"22e421c8.26678e","type":"debug","z":"d83276af.9cc65","name":"mapevents","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":160,"wires":[]},{"id":"d34e037.47f4e8","type":"worldmap in","z":"d83276af.9cc65","name":"","path":"/dashmap","events":"all","x":140,"y":160,"wires":[["22e421c8.26678e","bd58ca1.2a6fdb8"]]},{"id":"bd58ca1.2a6fdb8","type":"switch","z":"d83276af.9cc65","name":"","property":"payload.action","propertyType":"msg","rules":[{"t":"eq","v":"layer","vt":"str"},{"t":"eq","v":"feedback","vt":"str"},{"t":"eq","v":"delete","vt":"str"},{"t":"eq","v":"draw","vt":"str"},{"t":"eq","v":"History","vt":"str"}],"checkall":"false","repair":false,"outputs":5,"x":390,"y":260,"wires":[["b9d26268.bbbb2"],["8dd2a92.3f13858"],["397d3d23.02ba9a"],["df23002b.dd5a6"],["83e6e571.d8e378","61b5c477.936dec"]],"inputLabels":["events"],"outputLabels":["layer","feedback","delete","",""]},{"id":"f5d28410.55642","type":"link out","z":"d83276af.9cc65","name":"insert-out","links":["5d009b8f.39d7ec"],"x":755,"y":220,"wires":[]},{"id":"397d3d23.02ba9a","type":"link out","z":"d83276af.9cc65","name":"delete-out","links":["65efce54.eae6b8","86c1f47c.a89998"],"x":555,"y":300,"wires":[]},{"id":"b9d26268.bbbb2","type":"link out","z":"d83276af.9cc65","name":"layer-out","links":["2d90371c.e5d3f8","8a791f91.55eda","cb8450f4.8a5f68","f79b0cf4.eca3f"],"x":555,"y":220,"wires":[]},{"id":"6e620545.d1d34c","type":"comment","z":"d83276af.9cc65","name":"map event processing","info":"","x":180,"y":100,"wires":[]},{"id":"df23002b.dd5a6","type":"link out","z":"d83276af.9cc65","name":"draw-out","links":["7683f96e.2bcc78","68b750fa.c52378"],"x":555,"y":340,"wires":[]},{"id":"ef8c14ad.67ac88","type":"link out","z":"d83276af.9cc65","name":"Snap_to_location_feedback","links":["7c09d4b7.74656c"],"x":755,"y":280,"wires":[]},{"id":"8dd2a92.3f13858","type":"switch","z":"d83276af.9cc65","name":"","property":"payload.name","propertyType":"msg","rules":[{"t":"neq","v":"Snap to Location","vt":"str"},{"t":"eq","v":"Snap to Location","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":260,"wires":[["f5d28410.55642"],["ef8c14ad.67ac88"]]},{"id":"83e6e571.d8e378","type":"change","z":"d83276af.9cc65","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"3","tot":"num"},{"t":"delete","p":"topic","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":420,"wires":[["b5365325.ae368"]]},{"id":"b5365325.ae368","type":"link out","z":"d83276af.9cc65","name":"","links":["630691ba.0d0908"],"x":755,"y":420,"wires":[]},{"id":"61b5c477.936dec","type":"link out","z":"d83276af.9cc65","name":"History-trigger","links":["9809b47d.d7be38"],"x":555,"y":380,"wires":[]}]

But I'm not too concerned about this as I know that once the RC occurs everything functions as intended.

Hopefully that has helped to clarify things a bit more

I have stripped down the system to the following:

[{"id":"d4cb63fb.6579c8","type":"tab","label":"Map","disabled":false,"info":""},{"id":"d83276af.9cc65","type":"tab","label":"Map event processing","disabled":false,"info":""},{"id":"83c571cd.d1e4e","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0b00c6","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0b00c6","edited":true},"page-titlebar-backgroundColor":{"value":"#0b00c6","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#333333","edited":false},"group-textColor":{"value":"#2113ff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0b00c6","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"true","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":36,"sy":36,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"6846504f.f1de98","type":"ui_group","name":"Map","tab":"ef10a04c.589f3","order":9,"disp":true,"width":"20","collapse":false},{"id":"ef10a04c.589f3","type":"ui_tab","name":"Map","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"dd1c4008.90e058","type":"mongodb","hostname":"mi.rv91d.mongodb.net","topology":"dnscluster","connectOptions":"","port":"27017","db":"Marchwood","name":""},{"id":"b882e701.f0f3c","type":"ui_group","name":"Sensor - Digital","tab":"ef10a04c.589f3","order":6,"disp":true,"width":"10","collapse":false},{"id":"ef1497f2.8aaa58","type":"ui_group","name":"Node","tab":"ef10a04c.589f3","order":3,"disp":true,"width":"10","collapse":false},{"id":"e19bb157.6bdd6","type":"ui_group","name":"live_status","tab":"1441c09c.a4763f","order":1,"disp":true,"width":"20","collapse":false},{"id":"46f1dfa3.1c556","type":"ui_tab","name":"Site Plans","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"dc429e9.25491e","type":"ui_group","name":"table","tab":"46f1dfa3.1c556","order":2,"disp":false,"width":"20","collapse":false},{"id":"1441c09c.a4763f","type":"ui_tab","name":"Live status","icon":"dashboard","order":3,"disabled":false,"hidden":false},{"id":"8322d1cb.b5f6","type":"mqtt-broker","name":"mi","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"331a4514.d51e8a","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"telegraf","name":"Base","usetls":false,"tls":"","influxdbVersion":"1.8-flux","url":"http://localhost:8086/","rejectUnauthorized":true},{"id":"2ff2a476.a6d2ec","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"NODES","name":"test 1.8 flux","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"1.x","url":"https://localhost:8086","rejectUnauthorized":false},{"id":"d50d0c9f.31e858","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false},{"id":"4c6c1d4d.99d704","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"Boiler1","name":"","usetls":false,"tls":"","influxdbVersion":"1.x"},{"id":"1a45cdd4.2db222","type":"ui_group","name":"Default","tab":"35ff53eb.0e3c8c","order":1,"disp":true,"width":"6","collapse":false},{"id":"35ff53eb.0e3c8c","type":"ui_tab","name":"Menu","icon":"fa-tachometer","order":1,"disabled":false,"hidden":false},{"id":"165e1e1a.e752fa","type":"ui_group","name":"Default","tab":"f9b58883.fa613","order":1,"disp":true,"width":"12","collapse":false},{"id":"f9b58883.fa613","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"9869c8c7.a2bfa8","type":"ui_group","name":"Logo","tab":"ef10a04c.589f3","order":1,"disp":false,"width":"6","collapse":false},{"id":"d6afe955.2cb938","type":"ui_group","name":"Options","tab":"ef10a04c.589f3","order":4,"disp":true,"width":"6","collapse":false},{"id":"3eb5aae1.a8a296","type":"ui_group","name":"Tabs","tab":"ef10a04c.589f3","order":2,"disp":false,"width":25,"collapse":false},{"id":"2f77378f.aa8938","type":"ui_group","name":"Admin Login","tab":"ef10a04c.589f3","order":11,"disp":true,"width":"6","collapse":false},{"id":"30cf7e42.eb0802","type":"ui_group","name":"Admin Options","tab":"ef10a04c.589f3","order":8,"disp":true,"width":"6","collapse":false},{"id":"904d0520.5a38f8","type":"ui_group","name":"Current States","tab":"ef10a04c.589f3","order":10,"disp":true,"width":"10","collapse":false},{"id":"d3896566.fde8b8","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"alarms","name":"Alarms","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"1.x","url":"http://localhost:8086","rejectUnauthorized":true},{"id":"6b206ee8.a5a8b","type":"ui_spacer","name":"spacer","group":"3eb5aae1.a8a296","order":1,"width":25,"height":1},{"id":"113a7b1b.9e91d5","type":"ui_spacer","name":"spacer","group":"3eb5aae1.a8a296","order":2,"width":25,"height":1},{"id":"60164282.56a36c","type":"ui_group","name":"Add Site Plan","tab":"ef10a04c.589f3","order":12,"disp":true,"width":"6","collapse":false},{"id":"468d32cc.a7c5ec","type":"ui_tab","name":"History","icon":"dashboard","order":6,"disabled":false,"hidden":false},{"id":"520f753e.322f2c","type":"ui_group","name":"Logo","tab":"468d32cc.a7c5ec","order":1,"disp":false,"width":"6","collapse":false},{"id":"784c5b3f.cb6174","type":"ui_group","name":"Current State - Ana","tab":"468d32cc.a7c5ec","order":3,"disp":true,"width":"6","collapse":false},{"id":"900b2b53.5d21a8","type":"ui_group","name":"History","tab":"468d32cc.a7c5ec","order":4,"disp":true,"width":25,"collapse":false},{"id":"392f2642.3fc0ca","type":"ui_group","name":"States","tab":"468d32cc.a7c5ec","order":6,"disp":true,"width":"6","collapse":false},{"id":"750a13c5.43476c","type":"ui_group","name":"Options","tab":"468d32cc.a7c5ec","order":5,"disp":true,"width":"6","collapse":false},{"id":"4edfae8b.b8925","type":"ui_group","name":"Tab","tab":"468d32cc.a7c5ec","order":2,"disp":false,"width":"25","collapse":false},{"id":"7a3f5ae1.471a44","type":"ui_spacer","name":"spacer","group":"4edfae8b.b8925","order":2,"width":25,"height":1},{"id":"f506fbff.dd0c58","type":"ui_spacer","name":"spacer","group":"4edfae8b.b8925","order":3,"width":25,"height":1},{"id":"5fc54fbe.6b239","type":"ui_group","name":"Current State - Digital","tab":"468d32cc.a7c5ec","order":7,"disp":true,"width":"6","collapse":false},{"id":"b3c7385d.7ef6b8","type":"ui_group","name":"Options","tab":"46f1dfa3.1c556","order":1,"disp":true,"width":"6","collapse":false},{"id":"4f772a41.aa3f04","type":"ui_group","name":"Remove Plan","tab":"46f1dfa3.1c556","order":3,"disp":true,"width":"6","collapse":false},{"id":"13012f65.4b78d1","type":"ui_group","name":"Sensor Type","tab":"ef10a04c.589f3","order":5,"disp":true,"width":"6","collapse":false},{"id":"5501654f.4bb61c","type":"ui_group","name":"Sensor - Analogue","tab":"ef10a04c.589f3","order":7,"disp":true,"width":"6","collapse":false},{"id":"3d9e45e.bcd50ba","type":"ui_group","name":"Radial Gauges","tab":"e625ce36.34cf3","order":2,"disp":true,"width":"6","collapse":false},{"id":"e625ce36.34cf3","type":"ui_tab","name":"Widgets","icon":"dashboard","order":2,"disabled":false,"hidden":true},{"id":"22e421c8.26678e","type":"debug","z":"d83276af.9cc65","name":"mapevents","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":160,"wires":[]},{"id":"d34e037.47f4e8","type":"worldmap in","z":"d83276af.9cc65","name":"","path":"/dashmap","events":"all","x":140,"y":160,"wires":[["22e421c8.26678e"]]},{"id":"6e620545.d1d34c","type":"comment","z":"d83276af.9cc65","name":"map event processing","info":"","x":180,"y":100,"wires":[]},{"id":"7ee10d5e.317ea4","type":"ui_ui_control","z":"d4cb63fb.6579c8","name":"Dashboard control","events":"all","x":770,"y":600,"wires":[[]]},{"id":"630691ba.0d0908","type":"link in","z":"d4cb63fb.6579c8","name":"dashboard-control-in","links":["34de3848.0ff9f","8c2354ee.9e6a1","f2b4b65c.58ea7","fa3a0248.2d13f","aeaca535.289e8","ea3c11d6.bb17a","926c56fd.48cdd8","1c63e585.e02cea","1f62048d.f10ff3","524a3826.d2d0f","9eb74d86.f5fb9","b5365325.ae368","79839700.3e8bf8","b11baf66.56eeb","8938e88b.1cacc8","8cbb7930.68eb08"],"x":615,"y":600,"wires":[["7ee10d5e.317ea4","a8e1a662.d4f198"]]},{"id":"a5d5776e.f63358","type":"link in","z":"d4cb63fb.6579c8","name":"dashmap-in","links":["c562b309.20c15"],"x":635,"y":360,"wires":[["7a914636.11bf8","47fb350e.54f03c"]]},{"id":"d32f539c.f97a48","type":"comment","z":"d4cb63fb.6579c8","name":"The dashboard map panel","info":"","x":150,"y":180,"wires":[]},{"id":"f31c3343.1715f8","type":"comment","z":"d4cb63fb.6579c8","name":"The dashboard control node","info":"","x":760,"y":500,"wires":[]},{"id":"47fb350e.54f03c","type":"debug","z":"d4cb63fb.6579c8","name":"map control  input","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":320,"wires":[]},{"id":"98d6bad.8932d48","type":"comment","z":"d4cb63fb.6579c8","name":"TODO and ideas","info":"No particular order.\n\nPlan overlay from georeferenced image, or wms raster. Drag and drop?\n\nTime series plots.","x":710,"y":60,"wires":[]},{"id":"7a914636.11bf8","type":"ui_worldmap","z":"d4cb63fb.6579c8","group":"6846504f.f1de98","order":1,"width":20,"height":15,"name":"dashmap","lat":"50.86928","lon":"-1.85308","zoom":"2","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","allowFileDrop":"true","path":"/dashmap","x":760,"y":420,"wires":[]},{"id":"293b9438.63de4c","type":"ui_toast","z":"d4cb63fb.6579c8","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"notifications","x":760,"y":680,"wires":[]},{"id":"3e62503b.7dafb8","type":"link in","z":"d4cb63fb.6579c8","name":"notifications-in","links":["5fd23e06.f2ef1","1966cb27.a12295","833954b9.24081","9613c50.a545738","6044595e.b9dd7"],"x":615,"y":660,"wires":[["293b9438.63de4c"]]},{"id":"a8e1a662.d4f198","type":"debug","z":"d4cb63fb.6579c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":800,"y":560,"wires":[]},{"id":"f8d8dd92.8e025","type":"inject","z":"d4cb63fb.6579c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":400,"wires":[["8648746.086f988"]]},{"id":"8648746.086f988","type":"function","z":"d4cb63fb.6579c8","name":"","func":"var codeBlock_true = '<div class=\"content\">' +\n                    '<p>Parent :  Testing</p>' +\n                    '<p>Parent : Testing</p>' +\n                    '<p style=\"color:red\">State : true </p>' +\n                    '<button name=\"History\" onmouseover=\\'addToForm(\"name\",\"testname\"), addToForm(\"node\",\"00.00.00\")\\' onclick=\\'feedback(this.name,\"$form\",\"History\",true)\\'>History</button>' +\n                '</div>';\n                \nmapMsg = {}  \nmapMsg.payload = {}\nmapMsg.payload.name = \"testing\"\nmapMsg.payload.layer = \"Nodes\"\nmapMsg.payload.icon = \"fa-upload\"\nmapMsg.payload.iconColor = \"#ff0000\"\nmapMsg.payload.id = \"node.properties.mesh_address\"\nmapMsg.payload.lon = -1.837366\nmapMsg.payload.lat = 51.004608\nmapMsg.payload.popup = codeBlock_true\nmsg = mapMsg\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":400,"wires":[["7a914636.11bf8","e41b597d.fd7518","7ee10d5e.317ea4"]]},{"id":"e41b597d.fd7518","type":"debug","z":"d4cb63fb.6579c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":320,"wires":[]}]

This demonstrates that the issue is with the popups button click requiring a right click input before triggering. Any ideas on how to hard set the value of a right click/ an alternative method to avoid this would be much appreciated.

Hi. I’m on vacation at present so can’t look at this at the moment unless someone else cares to step in.

On it now dceejay. I :heart: worldmap

Cleaner flow to test with

[
    {
        "id": "0883546e4ce0276f",
        "type": "ui_ui_control",
        "z": "e70f83e354d182dd",
        "name": "Dashboard control",
        "events": "all",
        "x": 610,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "f9b11faa906e6427",
        "type": "ui_worldmap",
        "z": "e70f83e354d182dd",
        "group": "20ec120557ab9985",
        "order": 1,
        "width": 20,
        "height": 15,
        "name": "dashmap",
        "lat": "50.86928",
        "lon": "-1.85308",
        "zoom": "2",
        "layer": "OSM",
        "cluster": "",
        "maxage": "",
        "usermenu": "show",
        "layers": "show",
        "panit": "false",
        "panlock": "false",
        "zoomlock": "false",
        "hiderightclick": "false",
        "coords": "none",
        "showgrid": "false",
        "allowFileDrop": "true",
        "path": "/dashmap",
        "x": 580,
        "y": 360,
        "wires": []
    },
    {
        "id": "78a5e9a8c97632f2",
        "type": "inject",
        "z": "e70f83e354d182dd",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 240,
        "y": 400,
        "wires": [
            [
                "5a05750ccfc0aef6"
            ]
        ]
    },
    {
        "id": "5a05750ccfc0aef6",
        "type": "function",
        "z": "e70f83e354d182dd",
        "name": "",
        "func": "var codeBlock_true = '<div class=\"content\">' +\n                    '<p>Parent :  Testing</p>' +\n                    '<p>Parent : Testing</p>' +\n                    '<p style=\"color:red\">State : true </p>' +\n                    '<button name=\"History\" onmouseover=\\'addToForm(\"name\",\"testname\"), addToForm(\"node\",\"00.00.00\")\\' onclick=\\'feedback(this.name,\"$form\",\"History\",true)\\'>History</button>' +\n                '</div>';\n                \nmapMsg = {}  \nmapMsg.payload = {}\nmapMsg.payload.name = \"testing\"\nmapMsg.payload.layer = \"Nodes\"\nmapMsg.payload.icon = \"fa-upload\"\nmapMsg.payload.iconColor = \"#ff0000\"\nmapMsg.payload.id = \"node.properties.mesh_address\"\nmapMsg.payload.lon = -1.837366\nmapMsg.payload.lat = 51.004608\nmapMsg.payload.popup = codeBlock_true\nmsg = mapMsg\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 380,
        "y": 400,
        "wires": [
            [
                "f9b11faa906e6427",
                "b487a9f634455e72",
                "0883546e4ce0276f"
            ]
        ]
    },
    {
        "id": "b487a9f634455e72",
        "type": "debug",
        "z": "e70f83e354d182dd",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 370,
        "y": 340,
        "wires": []
    },
    {
        "id": "41d441edcb73a221",
        "type": "debug",
        "z": "e70f83e354d182dd",
        "name": "mapevents",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 390,
        "y": 460,
        "wires": []
    },
    {
        "id": "ba349ef0da70acc0",
        "type": "worldmap in",
        "z": "e70f83e354d182dd",
        "name": "",
        "path": "/dashmap",
        "events": "all",
        "x": 220,
        "y": 460,
        "wires": [
            [
                "41d441edcb73a221"
            ]
        ]
    },
    {
        "id": "20ec120557ab9985",
        "type": "ui_group",
        "name": "Map",
        "tab": "ef10a04c.589f3",
        "order": 9,
        "disp": true,
        "width": "20",
        "collapse": false
    },
    {
        "id": "ef10a04c.589f3",
        "type": "ui_tab",
        "name": "Map",
        "icon": "dashboard",
        "order": 1,
        "disabled": false,
        "hidden": false
    }
]

@meeki007 i think those are just config nodes that aren’t required so can probably be ignored/removed via the menu.

1 Like

Just noticed that ...... creating a clean example without a million things to remove from the unused bar :slight_smile: will post clean flow shortly and update my comment.

@alimschnell

Only used left click and it worked for me. Never touched right click.

It must be your environment. What node-red, worldmap, browser, and OS are you using?

I tested on:
Node-red - v2.0.3
Dashboard - v2.30.0
worldmap - v2.15.5
Firefox - v77.0.1
Chrome - v92.0.4515.107
OS Linux Mint - v20 (Ulyana)

@meeki007

Thanks for the quick reply guys, I probably won't have access to my setup until tomorrow but will update asap regarding the environment. The rc is required by spec for adding icons of differing types using a context menu.

From what I can see you are still missing the relevant message, clicking on the icon brings up the popup as it should (the 'click' action) which has a button within it. On click of that button we should be getting a 'feedback' message into the map events debug. It is that feedback message that does not do anything until a rc is made.

thanks for the explanation. I look forward to a updated example flow that I can test when your ready. We will figure this out.

So I am running the system on a RPI 3 that is running Raspbian GNU/Linux 10 (buster).

Node-RED version: v1.3.5
Node.js version: v12.22.1
Linux 5.10.17-v7+ arm LE
Worldmap version 2.9.0
Dashboard version 2.28.1

I tried your tidied up version and still got the same result, I've attached a screenshot of what the expected message is (and that it currently sends post rc) while using your version.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.