Representing locations in worldmap

#1

Hi,

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

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

[{"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":[]}]

#2
  1. When sharing code on the forum, please follow the advice in this post: How to share code or flow json

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

that show the formats you need to use.

1 Like
#3

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 !!! :smiley:

Thank you very much again. !!

1 Like