From 7b772d4e6c3c4409068b7f73e813ee7562665e9e Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 23 Nov 2022 09:42:03 +0000 Subject: [PATCH] ensure feedback value is passed back to close #212 --- CHANGELOG.md | 2 +- README.md | 3 +-- worldmap/worldmap.js | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9073032..3da1722 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### Change Log for Node-RED Worldmap - - v2.31.1 - Fix missing type property for drawings. Issue #213 + - v2.31.1 - Fix missing type property for drawings, and pass back feedback value. Issue #213, Issue #212 - v2.31.0 - Better handling of KML files. Issue #211 - v2.30.3 - Fix for iframe height. Issue #210 diff --git a/README.md b/README.md index 62d25c9..56cb419 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ map web page for plotting "things" on. ### Updates -- v2.31.1 - Fix missing type property for drawings. Issue #213 +- v2.31.1 - Fix missing type property for drawings, and pass back feedback value. Issue #213, Issue #212 - v2.31.0 - Better handling of KML files. Issue #211 - v2.30.3 - Fix for iframe height. Issue #210 - v2.30.2 - Fix for bad handling of mapbox id. Issue #208 @@ -25,7 +25,6 @@ map web page for plotting "things" on. - v2.27.1 - Reload existing markers for late joiners - v2.26.1 - Add QTH/Maidenhead option also - v2.26.0 - Add UTM and MGRS to coordinate display options. -- v2.25.0 - Add bounds command to set overall map bounds. - see [CHANGELOG](https://github.com/dceejay/RedMap/blob/master/CHANGELOG.md) for full list of changes. diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index d669700..100ca46 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -727,6 +727,7 @@ var feedback = function(n,v,a,c) { // ws.send(JSON.stringify({action:a||"feedback", name:n, value:v, layer:markers[n].lay, lat:fp.lat, lon:fp.lng})); var fb = allData[n]; fb.action = a || "feedback"; + if (v !== undefined) { fb.value = v; } ws.send(JSON.stringify(fb)); } else {