# World map bearing

**URL:** https://discourse.nodered.org/t/world-map-bearing/46058
**Category:** Dashboard
**Created:** [21 May 2021 21:04 UTC](https://discourse.nodered.org/t/world-map-bearing/46058 "2021-05-21T21:04:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [21 May 2021 21:04 UTC](https://discourse.nodered.org/t/world-map-bearing/46058/1 "2021-05-21T21:04:22Z")

</div>

World Map Icon Bearing.

I have a stationary icon "wind" but I want to change the bearing of it. As I want to indicate the wind direction of a specific location on the map.

Does the bearing field only become "active" once you change the location of the icon?

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

> let bearing = msg.payload.winddirection;  
> let color = "black";
> 
> msg.payload = {  
> "name": "swerfds",  
> "lat": -29.80654,  
> "lon": 30.7723,  
> "Temp":15,  
> "Wind Speed":234,  
> "Wind Direction":bearing,  
> "icon": "wind",  
> "color":color,  
> "iconColor": color,  
> };  
> return msg;

---

<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: [21 May 2021 21:54 UTC](https://discourse.nodered.org/t/world-map-bearing/46058/2 "2021-05-21T21:54:00Z")

</div>

You need bearing in the payload also

```
"bearing": bearing,
```

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [22 May 2021 06:38 UTC](https://discourse.nodered.org/t/world-map-bearing/46058/3 "2021-05-22T06:38:37Z")

</div>

> [@dceejay](#):
>
> `bearing`

Thank you

---

<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: [5 June 2021 06:39 UTC](https://discourse.nodered.org/t/world-map-bearing/46058/4 "2021-06-05T06:39:15Z")

</div>

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