i would like to plot points on the map using worldmap node, so far i have been successful in that, the problem is that i would like to use custom icons which are not part of the font-awesome or the emojis which are accepted by the worldmap.
i have seen an earlier post that showed that the worldmap can get the icon from a website, however this doesn't work for me as my project is offline and not connected to the internet.
is it possible to fetch the icons from a local folder and plot them on the map??, any help would be appreciated.
Node-RED is itself a web server - which is where you are loading the worldmap from - so you can edit your settings.js file to set up a local directory to serve files from. se the httpStatic setting.
thank you for your reply, i have setup the folder in the httpstatic to serve my files from, however i am still having difficulty in placing the name of the icon in my payload so it gets displayed on the map any hint on how i can make it?
you should be able to just set msg.payload.icon to the required url something like http://my-node-red-server:1880/my-static-path/icon.png . You should also be able to load that direct for another browser session.
You can also set msg.payload.iconSize to set the size of icon - otherwise it will get forced to 32x32px