How to pass sessionID between worldmap node and ui nodes and maintain browser session on a DB2 page that interacts with a worldmap? (multi user worldmap in db2)

tldr: it is possible to maintain a session with ui nodes from new dashboard 2.0 using msg._client.user. But Worldmap uses its own way(msg._sessionid) to maintain its own sessions. How to communicate sessionID and maintain browser session on a DB2 page that has worldmap in the page ?

According to worldmap's docs, we can use msg._sessionid coming from "Map In" node and do session-specific tasks:

All actions also include a: msg._sessionid property that indicates which client session they came from. Any msg sent out that includes this property will ONLY be sent to that session - so you can target map updates to specific sessions if required. msg._sessionip property that shows the ip of the client that is connected to the session.

Current situation is that: On submit button, the marker/tracks layer generates and shown/mirrored in all browser sessions in different computers(using that ngrok link in address bar).
But I cannot seem to figure out how to draw tracks on submit button on the map for this specific browser session.

I'm possibly missing some obvious thing. usually a worldmap can receive a payload along with msg._sessionid and Only make changes to that session.
for example:

msg.payload = {
    "name": "line42",
    "weight": 2,
    "line": [[60.84769, 27.128244], [60.792881, 27.281022]],
    "lat": 60.84769,
    "lon": 27.128244,
    "dashArray": "0 0",
    "layer": "track1",
    "color": "#808080"
};
msg._sessionid = "f942dbd5-c442-4c8a-bdd7-8145c8a0e937";

but on submit button, i cannot read this map's sessionID but rather i get a different socketid from db2 node.

if nothing works then one way is to build floating buttons,dropdowns and filter ranges inside the worldmap, kindly share insights
TIA!

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