# Ui template link to worldmap with markers

**URL:** https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668
**Category:** General
**Created:** [10 January 2019 16:41 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668 "2019-01-10T16:41:42Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![jupiter8](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jupiter8](https://discourse.nodered.org/u/jupiter8)
#### Post date: [10 January 2019 16:41 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/1 "2019-01-10T16:41:42Z")

</div>

I'm having a few buttons designed with the ui template node to link to other web pages like grafana, worldmap and others. What i'd like to achieve is open worldmap WITH the marker already there without having to inject the position (wich i'm doing manually with a dashboard button after the map is loaded)

Can it be possible to inject the position IN the link or trigger some flow with it like the link would do 2 actions?

Here's what's it look like:

`<body> <a href= "https://mysite/worldmap" target="_blank" class="button button_over">Carte</a> </body>`

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 January 2019 16:54 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/2 "2019-01-10T16:54:34Z")

</div>

you can use the worldmap in node - whenever a new client (web page) connects it will output a message. By filtering out the connect messages you can trigger your flow to send a marker right away (ie hook it to same place your button goes to).

---

<div class="post-metadata">

### Author: ![jupiter8](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jupiter8](https://discourse.nodered.org/u/jupiter8)
#### Post date: [10 January 2019 19:13 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/3 "2019-01-10T19:13:53Z")

</div>

Hi dceejay,

the messages output by the worldmap in node doesn't say much:

![debug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1c04e8cd1b8a72600d40b64364dbb2016f5430bb.jpeg)

And wether i connect with my phone or else it shows the same thing.

i'm i doing something wrong?

Thanks

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 January 2019 19:15 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/4 "2019-01-10T19:15:26Z")

</div>

Isn’t the connected message enough for you to “press”/ trigger instead of your button ?

---

<div class="post-metadata">

### Author: ![jupiter8](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jupiter8](https://discourse.nodered.org/u/jupiter8)
#### Post date: [10 January 2019 19:47 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/5 "2019-01-10T19:47:51Z")

</div>

Argh, sorry, i had to mention that i have 3 flows with each their maps and there is no way to route messages from the input node based on property.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 January 2019 19:52 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/6 "2019-01-10T19:52:54Z")

</div>

Why not ? I presume you know what you need to send to each.

---

<div class="post-metadata">

### Author: ![jupiter8](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jupiter8](https://discourse.nodered.org/u/jupiter8)
#### Post date: [10 January 2019 21:03 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/7 "2019-01-10T21:03:51Z")

</div>

Nope... I tried with iframe, 3 dashboard pages with each their maps and when i switch from one dashboard to the other i see the connecting actions on the node but it's the sames messages. I don't figure how to send information to the map automatically (like loading the dashboard page) Or best would be able to put the coordinates in the iframe address like google maps, or being able to keep some data about the client connexion.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 January 2019 22:03 UTC](https://discourse.nodered.org/t/ui-template-link-to-worldmap-with-markers/6668/8 "2019-01-10T22:03:38Z")

</div>

sorry - I'm obviously not understanding the use case fully.  
If this is in the Node-RED dashboard the ui\_control node is similar to the worldmap in node in that it reports any connections - but also includes info about the tab switched to also - so maybe use that instead.
