# Web-worldmap is not functioning even when I load a simple example

**URL:** <https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185>\
**Category:** General\
**Created:** [13 October 2020 16:11 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185 "2020-10-13T16:11:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lowchen](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@lowchen](https://discourse.nodered.org/u/lowchen)\
**Post date:** [13 October 2020 16:11 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/1 "2020-10-13T16:11:21Z")

</div>

Hi there,

I was very new to Node-red and I was exploring how to get started on the web-worldmap nodes. So I tried to import some examples to help me get started and surprisingly, when I deploy the flo and click inject (and the message of successfully injection comes out), I press ctrl + shift + m to jump over to the worldmap and....nothing that was passed to msg.payload shows up!

My example is as simple as below

```auto
[{"id":"7ccc3454.0495cc","type":"function","z":"7a91ddd3.5c5b04","name":"Add person to map","func":"var thing = {\n name:\"Jason Isaacs\", \n lat:51, \n lon:-1.45,\n icon:\"car\",\n iconColor:\"darkred\",\n extrainfo:\"Hello to Jason Isaacs\"\n};\nmsg.payload = thing;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":260,"wires":[["c28f2b07.01d088"]]}]

```

And attached is the worldmap image that I'm seeing after deployment.

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51e60f4c51a329f0ad6dc7947ad630824832f47b.jpeg)

I'd grealy appreciate if anyone can shed some light!

Owen

---

<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:** [13 October 2020 17:06 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/2 "2020-10-13T17:06:10Z")

</div>

The map doesn’t save any data so when you load the page it will be empty. Instead open it in another browser tab so it is already loaded before you press inject.

---

<div class="post-metadata">

**Author:** ![lowchen](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@lowchen](https://discourse.nodered.org/u/lowchen)\
**Post date:** [14 October 2020 02:25 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/3 "2020-10-14T02:25:21Z")

</div>

Hi @dceejay,

Thanks a lot for your reply!

Yes indeed, when I clicked deploy, I started a new tab and go to localhost:1880/worldmap, and yet, I'm not seeing the set-up that I have made in the payload...

I further checked that my versions for worldmap should be most updated (since I just use Palette to install it yesterday)..

Am I using worldmap in a wrong way ?

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:** [14 October 2020 13:26 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/4 "2020-10-14T13:26:16Z")

</div>

Try this very simple version

```auto
[{"id":"7ccc3454.0495cc","type":"function","z":"e9b4dddd.70115","name":"Add person to map","func":"var thing = {\n name:\"Jason Isaacs\", \n lat:51, \n lon:-1.45,\n icon:\"car\",\n iconColor:\"darkred\",\n extrainfo:\"Hello to Jason Isaacs\"\n};\nmsg.payload = thing;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":350,"y":1080,"wires":[["672cd862.cdd358"]]},{"id":"65076878.86d028","type":"inject","z":"e9b4dddd.70115","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"4","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":1080,"wires":[["7ccc3454.0495cc"]]},{"id":"672cd862.cdd358","type":"worldmap","z":"e9b4dddd.70115","name":"","lat":"","lon":"","zoom":"10","layer":"","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","path":"/worldmap","x":580,"y":1080,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![lowchen](https://avatars.discourse-cdn.com/v4/letter/l/a698b9/32.png) [@lowchen](https://discourse.nodered.org/u/lowchen)\
**Post date:** [14 October 2020 15:43 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/5 "2020-10-14T15:43:37Z")

</div>

Thanks a lot dceejay!! my worldmap now correcly displays something!

---

<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:** [13 December 2020 15:43 UTC](https://discourse.nodered.org/t/web-worldmap-is-not-functioning-even-when-i-load-a-simple-example/34185/6 "2020-12-13T15:43:46Z")

</div>

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