# Display coordinates on Worldmap

**URL:** https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194
**Category:** General
**Tags:** node-red-dashboard
**Created:** [4 May 2022 19:12 UTC](https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194 "2022-05-04T19:12:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Devon](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devon/32/61023_2.png) [@Devon](https://discourse.nodered.org/u/Devon)
#### Post date: [4 May 2022 19:12 UTC](https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194/1 "2022-05-04T19:12:53Z")

</div>

I am having issues getting any icon on my WorldMap node in Node-RED. I know that the input string has to be formatted in a very specific way, which I believe I have done correctly. I have tried both my own custom string closer to what I want to show and the example on the worldmap plugin page verbatim, and neither have worked. Note that In reality, this data comes from a GPS sensor and the Module MQTT, but am putting placeholder strings in for now to test. I'm probably missing some small detail. Can anyone spot it for me? Thanks.

 ![Screen Shot 2022-05-04 at 14.08.18](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d6969f54e03f2f4ab4476b154883b069452e3dec.png)  
 ![Screen Shot 2022-05-04 at 14.12.21](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/4/04cc640088c220a48387fef1e2537f03255315ab.png)

---

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [4 May 2022 20:02 UTC](https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194/2 "2022-05-04T20:02:50Z")

</div>

I think map markers have to be an array of objects. Try this:

```auto
msg.payload = [{"name": "Jason","lat":42.73,"lon": -90.2}];

```

 ![Untitled 16](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/9636bdbcb8434519108d2077af04289f7c19315e.jpeg)

---

<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: [4 May 2022 21:25 UTC](https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194/3 "2022-05-04T21:25:41Z")

</div>

Both should work. If it's an array it will plot all the points.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [3 July 2022 21:25 UTC](https://discourse.nodered.org/t/display-coordinates-on-worldmap/62194/4 "2022-07-03T21:25:44Z")

</div>

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