World map bearing

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?


let bearing = msg.payload.winddirection;
let color = "black";

msg.payload = {
"name": "swerfds",
"lat": -29.80654,
"lon": 30.7723,
"Wind Speed":234,
"Wind Direction":bearing,
"icon": "wind",
"iconColor": color,
return msg;

You need bearing in the payload also

"bearing": bearing,

Thank you

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