From 82fa21e2e585fbf58c3425ff36cf1c53d6c87077 Mon Sep 17 00:00:00 2001 From: meeki007 <5952964+meeki007@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:45:18 -0500 Subject: [PATCH 1/2] Update Documentation - lat/lon Utility functions Add simple example and link/url to detailed example showing users how to send lat/lon value when creating a custom contextmenu. This has been an issue. I've been stuck on worldmap v3.X for years over the v4.0 breaking changes. As I've found the time to upgrade and poke about many of my examples helping people are broken. See: https://discourse.nodered.org/t/using-a-touchscreen-to-add-waypoints-on-node-red-worldmap-dashboard-ui/51892/10 Also I've noticed this issue popup for others See: https://github.com/dceejay/RedMap/issues/299 https://github.com/dceejay/RedMap/issues/293 Feel free to change my words or formatting on this commit. Thnaks again, meeki007 --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a4fc967..23530ce 100644 --- a/README.md +++ b/README.md @@ -723,7 +723,7 @@ There are some internal functions available to make interacting with Node-RED ea - **addToForm()** : takes a property name value pair to add to a variable called `form`. When used with contextmenu feedback (above) you can set the feedback value to `"_form"` to substitute this accumulated value. This allows you to do things like `onBlur='addToForm(this.name,this.value)'` over several different fields in the menu and then use `feedback(this.name,"_form")` to submit them all at once. For example a simple multiple line form could be as per the example below: - Also if you wish to retain the values between separate openings of this form you can assign property names to the value field in the form `value="${foo}`, etc. These will then appear as part of an **value** property on the worldmap-in node message. +Retain Values - If you wish to retain the values between separate openings of this form you can assign property names to the value field in the form `value="${foo}`, etc. These will then appear as part of an **value** property on the worldmap-in node message. ``` var menu = 'Add some data
' @@ -732,6 +732,24 @@ menu += '