Updates for right click to include lat lon, and 3d direction handlilng

This commit is contained in:
Dave Conway-Jones 2021-02-20 14:04:29 +00:00
parent 698bb517d8
commit 27deece616
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
### Change Log for Node-RED Worldmap ### 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.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.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 - v2.7.1 - Also allow geojson files to be dropped, and better png handling

View File

@ -11,6 +11,8 @@ map web page for plotting "things" on.
### Updates ### 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.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.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 - v2.7.1 - Also allow geojson files to be dropped, and better png handling

View File

@ -673,7 +673,7 @@ var feedback = function(n,v,a,c) {
} }
else { else {
if (n === undefined) { n = "map"; } 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(); } if (c === true) { map.closePopup(); }
} }