From 27deece6160d42790b8beee4356949d32791391e Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Sat, 20 Feb 2021 14:04:29 +0000 Subject: [PATCH] Updates for right click to include lat lon, and 3d direction handlilng --- CHANGELOG.md | 2 ++ README.md | 2 ++ worldmap/worldmap.js | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb1dd63..203c7a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ ### Change Log for Node-RED Worldmap + - v2.8.3 - Let feedback include lat lon for context menu on general map. + - v2.8.2 - Improve direction handling of 3d objects. - v2.8.1 - Fix old tracks re-appearing afer hide/show. Issue #135 - v2.8.0 - Align vector with `track`, prioritise hdg and heading over bearing. Add old location to move action. - v2.7.1 - Also allow geojson files to be dropped, and better png handling diff --git a/README.md b/README.md index 4b4ca10..9f96076 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ map web page for plotting "things" on. ### Updates +- v2.8.3 - Let feedback include lat lon for context menu on general map. +- v2.8.2 - Improve direction handling of 3d objects. - v2.8.1 - Fix old tracks re-appearing afer hide/show. Issue #135 - v2.8.0 - Align vector with `track`, prioritise hdg and heading over bearing. Add old location to move action. - v2.7.1 - Also allow geojson files to be dropped, and better png handling diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index c2272b5..85f45ab 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -673,7 +673,7 @@ var feedback = function(n,v,a,c) { } else { if (n === undefined) { n = "map"; } - ws.send(JSON.stringify({action:a||"feedback", name:n, value:v})); + ws.send(JSON.stringify({action:a||"feedback", name:n, value:v, lat:rclk.lat, lon:rclk.lng,})); } if (c === true) { map.closePopup(); } }