# Not seeing coordinates on worldmap

**URL:** <https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000>\
**Category:** General\
**Created:** [16 November 2020 12:43 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000 "2020-11-16T12:43:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 12:43 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/1 "2020-11-16T12:43:37Z")

</div>

```auto
[{"id":"b2c925db.9b5638","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"ac27147f.1ecc58","type":"buffer-parser","z":"b2c925db.9b5638","name":"Bulid Tags","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"byte","name":"lat","offset":6,"length":3,"offsetbit":0,"scale":1,"mask":""},{"type":"byte","name":"lon","offset":9,"length":3,"offsetbit":0,"scale":1,"mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":350,"y":160,"wires":[["12b41419.a1a1ac"]]},{"id":"12b41419.a1a1ac","type":"function","z":"b2c925db.9b5638","name":"","func":"var lat = (msg.payload.lat[0] << 24) + (msg.payload.lat[1] << 16) + (msg.payload.lat[2] << 8) \nvar lon = (msg.payload.lon[0] << 24) + (msg.payload.lon[1] << 16) + (msg.payload.lon[2] << 8) \n\nif (lat > 0x7FFFFFFF) { // 0x7FFFFFFF not 0x7FFFFFF\n lat -= 0x100000000;\n}\n// else << DONT DO IF ELSE HERE!\nif (lon > 0x7FFFFFFF) { // 0x7FFFFFFF not 0x7FFFFFF\n lon -= 0x100000000;\n}\n\nlat /= 10000000; //outside of the IF\nlon /= 10000000; //outside of the IF \n\nmsg.payload.lat=latitude\nmsg.payload.lon=longitude\n \nmsg.origPayload = {\n latitude: latitude,\n longitude: longitude\n}\n\nreturn msg.origPayload;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":140,"wires":[["9f22db87.639b78"]]},{"id":"aa3e4429.aff7b8","type":"debug","z":"b2c925db.9b5638","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]},{"id":"e857e2a1.d3861","type":"mqtt in","z":"b2c925db.9b5638","name":"","topic":"bachloo.rahul@gmail.com/test","qos":"0","datatype":"json","broker":"55bef158.86a7c","x":160,"y":40,"wires":[["cfcd456a.191e58"]]},{"id":"936eefa2.7b615","type":"base64","z":"b2c925db.9b5638","name":"","action":"","property":"payload","x":440,"y":80,"wires":[["ac27147f.1ecc58"]]},{"id":"cfcd456a.191e58","type":"function","z":"b2c925db.9b5638","name":"","func":"var t=msg.payload;\nmsg.payload=t.data;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":100,"wires":[["936eefa2.7b615"]]},{"id":"9f22db87.639b78","type":"change","z":"b2c925db.9b5638","name":"set name","rules":[{"t":"set","p":"name","pt":"msg","to":"apple","tot":"str"},{"t":"set","p":"icon","pt":"msg","to":"fa-truck","tot":"str"},{"t":"set","p":"layer","pt":"msg","to":"markers","tot":"str"},{"t":"delete","p":"_msgid","pt":"msg"},{"t":"delete","p":"lat","pt":"msg"},{"t":"delete","p":"lon","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":240,"wires":[["aa3e4429.aff7b8","16b1288d.a68b37"]]},{"id":"16b1288d.a68b37","type":"worldmap-tracks","z":"b2c925db.9b5638","name":"GPS Tracks","depth":"20","layer":"combined","x":570,"y":300,"wires":[["95f1a239.2e3a5"]]},{"id":"95f1a239.2e3a5","type":"worldmap","z":"b2c925db.9b5638","name":"","lat":"","lon":"","zoom":"10","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","path":"/worldmap","x":700,"y":360,"wires":[]},{"id":"55bef158.86a7c","type":"mqtt-broker","name":"","broker":"maqiatto.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 12:52 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/2 "2020-11-16T12:52:46Z")

</div>

Hi, you should at least provide a description of what you attempting to do and where you are stuck.

Also, your flow is prett useless as people wont have access to your data and wont want to install other nodes like buffer parser.

Generate the smallest working flow with least amount of nodes WITH sample data so that people can test your flow and fix it for you...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e13071c6e460b762a66892411882d943cc198189.png)

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 13:06 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/3 "2020-11-16T13:06:28Z")

</div>

I have flow which u shared so this might work  
[abeeway\_microtracker.json](https://discourse.nodered.org/uploads/short-url/4rjEdSjqOsVodHm6KOrsVcvTF86.json) (1.9 KB)  
I basically want to plot gps coordinates i.e latitude and longitude using node red worldmap node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f9e61601f1a33b3827df64650cefe8874784b306.png)  
upto this point i have reached but when i see worldmap it doesn't show coordinates.  
**Payload**

```auto
{"latitude":28.3917568,"longitude":76.9600512,"_msgid":"803e9e46.ad97b","name":"apple","icon":"fa-truck","layer":"markers"}

```

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/9/e9785ecaf5430c2b56c4e1abeb2c92dac61237b6.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/8/182ecec49bbc95713edb3e6745d6b3c583003c1f.jpeg)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 14:42 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/4 "2020-11-16T14:42:46Z")

</div>

As per the [documentation](https://flows.nodered.org/node/node-red-contrib-web-worldmap)...

> The minimum **msg.payload** must contain `name` , `lat` and `lon` properties, for example

```auto
    msg.payload = { "name":"Jason", "lat":51.05, "lon":-1.35 }

```

It appears as though you are setting msg.lattitude instead of msg.payload.lat (and same issue for `lon` and `name`)

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 14:55 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/5 "2020-11-16T14:55:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/91292bf53291e377306babcc4ff294374db867ac.png)  
yes @steve i am receving this in debug window.but now i just want to extract payload out of whole msg.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 15:03 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/6 "2020-11-16T15:03:47Z")

</div>

Read the docs and re-read my last message.

`.lat` is NOT equal to `.lattitude`

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 15:17 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/7 "2020-11-16T15:17:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/4/6499ed360c4180625dda805715a689f034408e31.png)  
yes made changes now but till now not able to see coordinates on worldmap.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 15:19 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/8 "2020-11-16T15:19:40Z")

</div>

> [@bachloo.rahul](#):
>
> yes made changes now

No you havent, at least not correctly! Those values are NOT in `msg.payload`. Look at your screenshot.

Please check your work.

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 15:20 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/9 "2020-11-16T15:20:21Z")

</div>

so how can i add them in msg.payload?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 15:23 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/10 "2020-11-16T15:23:44Z")

</div>

In your change node, dont put them in `msg` put them in `msg.payload`

change node...

- First entry : Set msg.payload to JSON `{}` (make payload an empty object)
- Second entry: Set `msg` `payload.lat` to `msg` `lattitude`
- thrid entry: Set `msg` `payload.lon` to `msg` `longitude`  
and so on

or in a function node...

```auto
msg.payload = {
 lat: msg.lattitude,
 lon: msg.longitude,
 name: msg.name
}
return msg;
```

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [16 November 2020 15:29 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/11 "2020-11-16T15:29:21Z")

</div>

Different perspective, as it might help to understand what is going on. Here’s the longer version described. [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

Every message in node red is an object. This object holds a number of properties, including the “\_msgid” from your previous topic, and a “payload” property. This payload is used by nodes as the content, so to say. The worldmap node is looking for payloads that are objects themselves, with a set of mandatory properties on them, such as name, lat and lon.  
In the structure of your entire message, these properties are set on the payload, rather than the message object itself.

I hope that gives you the background you’re looking for, as for the rest Steve’s instructions are the way to go.

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 15:46 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/12 "2020-11-16T15:46:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74d9d54fae28f566f4d76310570e51f6e99242c3.png)  
please steve share ur flow i am unable to do using my flow.or u can modify this flow

```auto
[{"id":"168049bc.7f2556","type":"change","z":"f1c3712a.51632","name":"set name","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"json"},{"t":"set","p":"payload.name","pt":"msg","to":"apple","tot":"str"},{"t":"set","p":"payload.icon","pt":"msg","to":"fa-truck","tot":"str"},{"t":"set","p":"payload.layer","pt":"msg","to":"markers","tot":"str"},{"t":"set","p":"_msgid","pt":"msg","to":"payload._msgid","tot":"msg"},{"t":"set","p":"payload.lat","pt":"msg","to":"lat","tot":"msg"},{"t":"set","p":"payload.lon","pt":"msg","to":"lon","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":200,"wires":[["40ae8e7f.0cd12"]]}]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 15:51 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/13 "2020-11-16T15:51:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/2/d20e674aa12656b94a66a466087daa524f8010c2.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 November 2020 15:51 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/14 "2020-11-16T15:51:30Z")

</div>

I think it would save everyone a lot of time if you spend an hour watching the Node Red Essentials videos linked from the node red docs, than reading carefully the page that @afelix linked to. If you don't understand anything then ask. Once you understand all that you should be able to do it yourself easily.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 15:52 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/15 "2020-11-16T15:52:35Z")

</div>

I concur fully with Colin and Lena.

watch this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [16 November 2020 15:55 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/16 "2020-11-16T15:55:53Z")

</div>

I will also add this is not the first time we have spent our time trying to get you to understand some of the basic principles of working with message properties.

There was a thread a month ago from you on exactly the same topic.

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 15:57 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/17 "2020-11-16T15:57:51Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/eed534184168d79f2b0fc9845e9e2eb30187feeb.png)  
yes made the changes according to you this is the output.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 16:01 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/18 "2020-11-16T16:01:08Z")

</div>

Looks like in some other adjustment you have you deleted the msg.lattitude and msg.longitude - thats why they are missing.

I am sorry - I tried to lead you to the answer so that you can become proficient.

Post your flow as it is now and I will fix it for you - but note - this is not really a good way to help you I hope you realise.

---

<div class="post-metadata">

**Author:** ![bachloo.rahul](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Post date:** [16 November 2020 16:03 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/19 "2020-11-16T16:03:09Z")

</div>

@steve I have not deleted anything for sure as far as i can remember.

```auto
[{"id":"f1c3712a.51632","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"c573d354.4e202","type":"buffer-parser","z":"f1c3712a.51632","name":"Bulid Tags","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"byte","name":"lat","offset":6,"length":3,"offsetbit":0,"scale":1,"mask":""},{"type":"byte","name":"lon","offset":9,"length":3,"offsetbit":0,"scale":1,"mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":350,"y":160,"wires":[["bafbdd1c.dbce3"]]},{"id":"bafbdd1c.dbce3","type":"function","z":"f1c3712a.51632","name":"","func":"var lat = (msg.payload.lat[0] << 24) + (msg.payload.lat[1] << 16) + (msg.payload.lat[2] << 8) \nvar lon = (msg.payload.lon[0] << 24) + (msg.payload.lon[1] << 16) + (msg.payload.lon[2] << 8) \n\nif (lat > 0x7FFFFFFF) { // 0x7FFFFFFF not 0x7FFFFFF\n lat -= 0x100000000;\n}\n// else << DONT DO IF ELSE HERE!\nif (lon > 0x7FFFFFFF) { // 0x7FFFFFFF not 0x7FFFFFF\n lon -= 0x100000000;\n}\n\nlat /= 10000000; //outside of the IF\nlon /= 10000000; //outside of the IF \n\nvar latitude,longitude;\n\nmsg.payload.lat = latitude;\nmsg.payload.lon = longitude;\n\nreturn msg.payload;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":540,"y":140,"wires":[["168049bc.7f2556"]]},{"id":"40ae8e7f.0cd12","type":"debug","z":"f1c3712a.51632","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":730,"y":120,"wires":[]},{"id":"56b1735a.72088c","type":"mqtt in","z":"f1c3712a.51632","name":"","topic":"bachloo.rahul@gmail.com/test","qos":"0","datatype":"json","broker":"55bef158.86a7c","x":160,"y":40,"wires":[["2290cb3c.d51354"]]},{"id":"e9da35ff.a1ad48","type":"base64","z":"f1c3712a.51632","name":"","action":"","property":"payload","x":420,"y":80,"wires":[["c573d354.4e202"]]},{"id":"2290cb3c.d51354","type":"function","z":"f1c3712a.51632","name":"","func":"var t=msg.payload;\nmsg.payload=t.data;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":260,"y":100,"wires":[["e9da35ff.a1ad48"]]},{"id":"168049bc.7f2556","type":"change","z":"f1c3712a.51632","name":"set name","rules":[{"t":"set","p":"payload","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"payload.lat","pt":"msg","to":"latitude","tot":"msg"},{"t":"set","p":"payload.lon","pt":"msg","to":"longitude","tot":"msg"},{"t":"set","p":"payload.name","pt":"msg","to":"apple","tot":"str"},{"t":"set","p":"payload.icon","pt":"msg","to":"fa-truck","tot":"str"},{"t":"set","p":"payload.layer","pt":"msg","to":"markers","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":200,"wires":[["40ae8e7f.0cd12"]]},{"id":"38833219.eed1ee","type":"worldmap-tracks","z":"f1c3712a.51632","name":"GPS Tracks","depth":"20","layer":"combined","x":530,"y":340,"wires":[["dedad9e1.d48fb8"]]},{"id":"dedad9e1.d48fb8","type":"worldmap","z":"f1c3712a.51632","name":"","lat":"","lon":"","zoom":"10","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","path":"/worldmap","x":700,"y":320,"wires":[]},{"id":"55bef158.86a7c","type":"mqtt-broker","name":"","broker":"maqiatto.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

```

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 November 2020 16:07 UTC](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000/20 "2020-11-16T16:07:56Z")

</div>

change the function AFTER the buffer parser to this...

```auto
var lat = (msg.payload.lat[0] << 24) + (msg.payload.lat[1] << 16) + (msg.payload.lat[2] << 8) 
var lon = (msg.payload.lon[0] << 24) + (msg.payload.lon[1] << 16) + (msg.payload.lon[2] << 8) 

if (lat > 0x7FFFFFFF) { 
  lat -= 0x100000000;
}

if (lon > 0x7FFFFFFF) {
  lon -= 0x100000000;
}

lat /= 10000000; 
lon /= 10000000;

msg.payload.lat = lat ;
msg.payload.lon = lon ;
msg.payload.name = "apple"; //set name
msg.payload.icon = "fa-truck"; //set icon
msg.payload.marker = "layer"; //set marker

//return msg.payload; WRONG - always return msg!
return msg;

```

and delete the change node

[Next page](https://discourse.nodered.org/t/not-seeing-coordinates-on-worldmap/36000.md?page=2)
