Hi there,
First off... big thanks to all the developers and contributors to this awesome project!
I'm running Node Red 0.16.2 on Ubuntu 64-bit and it works great. I've got it controlling wemos/android devices via MQTT as well as pulling and displaying data from my home energy monitor.
What I hope someone can help with is I'm trying to plot objects using world map (node-red-contrib-web-worldmap). I believe I have it installed correctly, the map shows up (but seems to be always centered on "Winchester" UK). I manually entered position data into the Worldmap object and it plotted it ok for a few tries and then seemed to stop working. I'm pulling AIS data for a local ferry and I have that working ok... just need to get it onto the map.
Is there anything obvious I'm missing? I can think of 1000s of things I can do with this if I could only get it working. I've searched this group and online with not much luck.
I've attached my flow so far... any ideas?:
[
{
"id": "57009dab.2b1904",
"type": "tab",
"label": "Flow 2"
},
{
"id": "86f7937d.11f9b",
"type": "function",
"z": "57009dab.2b1904",
"name": "Plot object on map",
"func": "var posFerry = {\n name:\"Ferry\", \n lat:49, \n lon:-123.45,\n icon:\"ship\",\n iconColor:\"darkred\",\n extrainfo:\"Something goes here\",\n zoom:\"10\"\n};\nmsg.payload = posFerry;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 471,
"y": 217.10003662109375,
"wires": [
[
"12984e95.797101",
"7f1def58.0b441"
]
]
},
{
"id": "12984e95.797101",
"type": "worldmap",
"z": "57009dab.2b1904",
"name": "",
"lat": "",
"lon": "",
"zoom": "",
"layer": "Esri Satellite",
"cluster": "",
"maxage": "",
"x": 711,
"y": 217.10003662109375,
"wires": []
},
{
"id": "38e7cff9.041008",
"type": "inject",
"z": "57009dab.2b1904",
"name": "",
"topic": "",
"payload": "",
"payloadType": "str",
"repeat": "",
"crontab": "",
"once": false,
"x": 281,
"y": 217.10003662109375,
"wires": [
[
"86f7937d.11f9b"
]
]
},
{
"id": "3b96f305.18baa4",
"type": "comment",
"z": "57009dab.2b1904",
"name": "Simple map - click inject to send thing to map.",
"info": "Adds a map at http://(your-server-ip):1880/worldmap. \n\nThe `function` node creates an object with some basic properties required to add to a map.",
"x": 411,
"y": 157.10003662109375,
"wires": []
},
{
"id": "7f1def58.0b441",
"type": "debug",
"z": "57009dab.2b1904",
"name": "",
"active": true,
"console": "false",
"complete": "false",
"x": 715,
"y": 298,
"wires": []
}
]
Thanks so much!
PS The flow was pulled mostly from another thread on this group...
Thanks!
Tom