Sorry if this has been asked a thousand times. I've tried to replicate the following node myself, but it didn't work out as I have expected. The source code that I pasted into my function node is here:
https://flows.nodered.org/flow/5d2c9fa71b249b21d3c377087dd5b395
And the node that I tried to replicate:
The Mqtt node still displays "connecting" and the worldmap only displays one marker which is my current location. It was supposed to display a bunch of markers in Helsinki, Finland.
I might have pasted the source code into a wrong place. I'm still a newbie here, any assistance much appreciated.