# Representing locations in worldmap

**URL:** <https://discourse.nodered.org/t/representing-locations-in-worldmap/7334>\
**Category:** General\
**Created:** [28 January 2019 14:12 UTC](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334 "2019-01-28T14:12:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emspe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emspe/32/5421_2.png) [@emspe](https://discourse.nodered.org/u/emspe)\
**Post date:** [28 January 2019 14:12 UTC](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334/1 "2019-01-28T14:12:49Z")

</div>

Hi,

I tried below to map 2 locations in worldmap. But I couldn't see anything in my map ☹

Kindly help me to figureout if i missed anything. I tried several times. 😫

[{"id":"b6759d10.50e8b","type":"worldmap","z":"5cee13a4.799f2c","name":"","lat":"","lon":"","zoom":"20","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","path":"/worldmap","x":540,"y":400,"wires":[]},{"id":"8c9cf3f4.6e2ee","type":"inject","z":"5cee13a4.799f2c","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":400,"wires":[["345cd13b.67bc3e"]]},{"id":"345cd13b.67bc3e","type":"function","z":"5cee13a4.799f2c","name":"","func":"msg.payload = { name: "Emergency Medical Operation",\n lat: 51.05,\n lon: -1.35,\n SIDC: "ENOPA-------",\n options: { fillOpacity:0.8 }\n}\n\n\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":400,"wires":[["b6759d10.50e8b","bda40b21.f6afd8"]]},{"id":"fe0f8a78.3abd08","type":"function","z":"5cee13a4.799f2c","name":"","func":"msg.payload = { name: "Test1",\n lat: 48.83,\n lon: 2.25,\n icon: 'arrows'\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":460,"wires":[["b6759d10.50e8b","bda40b21.f6afd8"]]},{"id":"fabb65ab.190d18","type":"inject","z":"5cee13a4.799f2c","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":190,"y":460,"wires":[["fe0f8a78.3abd08"]]},{"id":"bda40b21.f6afd8","type":"debug","z":"5cee13a4.799f2c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":550,"y":460,"wires":[]}]

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [28 January 2019 14:19 UTC](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334/2 "2019-01-28T14:19:03Z")

</div>

1. When sharing code on the forum, please follow the advice in this post: [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

2. Have you found the world map examples under the `menu > import > examples > web worldmap`

that show the formats you need to use.

---

<div class="post-metadata">

**Author:** ![emspe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emspe/32/5421_2.png) [@emspe](https://discourse.nodered.org/u/emspe)\
**Post date:** [28 January 2019 17:26 UTC](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334/3 "2019-01-28T17:26:32Z")

</div>

Hello,

**1 :** I was not aware of that & thank you you very much for letting me know about this. I will follow this hereafter.

**2 :** I'm very much thankful for providing me the guidance. This is really helpful. I didn't figure out this before. Instead I searched in several forums, read many posted articles. Now I followed this and it works !!! 😃

Thank you very much again. !!
