FreeScript
RedMap
by dceejay · version 2026.10.21 · updated yesterday
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 1.3 MB
- Code check
- Checked
- Licence
- Apache-2.0
- Released
- Nov 2026
A web map app for Node-RED to put blobs on
node-red-contrib-web-worldmap
A Node-RED node to provide a world map web page for plotting "things" on. Please feel free to this project.
Updates
Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically
npm i node-red-contrib-web-worldmap
Usage
Plots "things" on a map. By default the map will be served from
can be changed in the configuration panel.
Use keyboard shortcut
The minimum msg.payload must contain
msg.payload = { "name":"Jason", "lat":51.05, "lon":-1.35 }
Optional properties for msg.payload include
overridden by using the popup property to supply your own html content. If you use the
popup property it will completely replace the contents so photourl, videourl and weblink are meaningless in this mode.
Icons
You may select any of the Font Awesome set of icons.
If you use the name without the fa- p
…
A Node-RED node to provide a world map web page for plotting "things" on. Please feel free to this project.
Updates
- v5.9.0 - Remove name from areas if using popup replacement.
- v5.8.2 - Fix map lock, shape name/popup bug. Bump libs
- v5.8.1 - Fix draggable event
- v5.8.0 - Stop double click on icons zooming in. Bump uuid lib.
- v5.7.2 - Bump express libs.
- v5.7.0 - Add events for openPopup and closePopup, small popup fixups. Add showdialog command.
- v5.6.1 - Also call autoswitch on initial connect to ensure map in view.
- v5.6.0 - Autoswitch pmtiles basemaps based on zoom and/or coverage.
- v5.5.8 - Bump qs dep for CVE
- v5.5.7 - Fix COG handling for built in icons, bump various libs for CVEs
- v5.5.4 - slight tweak to geojson property display as table
- v5.5.3 - ensure SOG gets picked up earlier in chain
- v5.5.2 - Slight improvement for on/offline choice of map
- v5.5.1 - Fix maxNativeZoom for pmtiles to pull from tiles files. Issue #312
- v5.5.0 - Add ability to load raster pmtiles files. Issue #312
- v5.4.0 - Let msg.payload.command.zoomLevels set an array of acceptable zoom levels. Issue #312
- v5.3.0 - Let msg.payload.popupOptions object set Leaflet popup options so it can be customised. Issue #311
- v5.2.0 - Allow left click send back co-ords. Let Button be replaceable more easily and take value property. Issue #308 and #309
- see CHANGELOG for full list of changes.
Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically
~/.node-rednpm i node-red-contrib-web-worldmap
Usage
Plots "things" on a map. By default the map will be served from
{httpRoot}/worldmap, but thiscan be changed in the configuration panel.
Use keyboard shortcut
⌘⇧m, ctrl-shift-m to jump to the map.The minimum msg.payload must contain
name, lat and lon properties, for examplemsg.payload = { "name":"Jason", "lat":51.05, "lon":-1.35 }
name must be a unique identifier across the whole map. Repeated location updates to the same name move the marker.Optional properties for msg.payload include
- deleted : set to true to remove the named marker. (default false)
- draggable : set to true to allow marker to be moved by the mouse. (default false)
- layer : specify a layer on the map to add marker to. (default "unknown")
- track | hdg | heading | COG | bearing : when combined with speed, draws a vector. (only first will be used)
- speed : when combined with track, hdg, heading, or bearing, draws a leader line vector - should be in m/s. Can also be specified as "20 kph", or "20 mph", or "20 kt". i.e a string with units.
- SOG : speed over ground - speed in knots.
- alt | altitude | altft | altm : Altitude in meters, but can use altft to specify feet instead.
- accuracy : when combined with heading vector, draws an arc of possible direction.
- color : CSS color name or #rrggbb value for heading vector line or accuracy polygon.
- icon : font awesome icon name, weather-lite icon, :emoji name:, or https:// or inline data:image/ uri.
- iconColor : Standard CSS colour name or #rrggbb hex value.
- iconSize : Set the size in pixels of the "special" icons and web icons.
- SIDC : NATO symbology code (can be used instead of icon). See below.
- building : OSMbulding GeoJSON feature set to add 2.5D buildings to buildings layer. See below.
- ttl : time to live, how long an individual marker stays on map in seconds (overrides general maxage setting, minimum 20 seconds). Setting to 0 disables the timeout.
- photoUrl : adds an image pointed at by the url to the popup box.
- videoUrl : adds an mp4 video pointed at by the url to the popup box. Ideally 320x240 in size.
- weblink : adds a link to an external page. Either set a url as a string, or an object like
{"name":"BBC News", "url":"https://news.bbc.co.uk", "target":"_new"}, or multiple links with an array of objects[{"name":"BBC News", "url":"https://news.bbc.co.uk", "target":"_new"},{"name":"node-red", "url":"https://nodered.org", "target":"_new"}] - addtoheatmap : set to false to exclude point from contributing to the heatmap layer. (default true)
- intensity : set to a value of 0.1 - 1.0 to set the intensity of the point on the heatmap layer. (default 1.0)
- clickable : Default true. Setting to false disables showing any popup.
- popped : set to true to automatically open the popup info box, set to false to close it.
- popup : html to fill the popup if you don't want the automatic default of the properties list. Using this overrides photourl, videourl and weblink options.
- popupOptions : optional object to help style the popup - See Leaflet popup docs for options - eg to add a custom class -
{className:"mySpecialPopup",width:600} - label : displays the contents as a permanent label next to the marker, or
- tooltip : displays the contents when you hover over the marker. (Mutually exclusive with label. Label has priority)
- tooltipOptions : custom tooltip/label options (offset, direction, permanent, sticky, interactive, opacity, className) )
- contextmenu : an html fragment to display on right click of marker - defaults to delete marker. You can specify
${name}to substitute in the name of the marker. Set to""to disable just this instance.
msg.payload properties will be added to the icon popup text box. This can beoverridden by using the popup property to supply your own html content. If you use the
popup property it will completely replace the contents so photourl, videourl and weblink are meaningless in this mode.
Icons
You may select any of the Font Awesome set of icons.
If you use the name without the fa- p
…