Skip to content

Commit 0b7540d

Browse files
committed
fix COG alignment, bump libs
1 parent 84ee85f commit 0b7540d

5 files changed

Lines changed: 76 additions & 80 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Change Log for Node-RED Worldmap
22

3+
- v5.5.7 - Fix COG handling for built in icons, bump various libs for CVEs
34
- v5.5.4 - slight tweak to geojson property display as table
45
- v5.5.3 - ensure SOG gets picked up earlier in chain
56
- v5.5.2 - Slight improvement for on/offline choice of map

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ A <a href="https://nodered.org" target="mapinfo">Node-RED</a> node to provide a
1010

1111
### Updates
1212

13+
- v5.5.7 - Fix COG handling for built in icons, bump various libs for CVEs
1314
- v5.5.4 - slight tweak to geojson property display as table
1415
- v5.5.3 - ensure SOG gets picked up earlier in chain
1516
- v5.5.2 - Slight improvement for on/offline choice of map

package-lock.json

Lines changed: 71 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "node-red-contrib-web-worldmap",
3-
"version": "5.5.6",
3+
"version": "5.5.7",
44
"description": "A Node-RED node to provide a web page of a world map for plotting things on.",
55
"dependencies": {
6-
"@turf/bezier-spline": "~7.3.2",
6+
"@turf/bezier-spline": "~7.3.4",
77
"cgi": "0.3.1",
88
"compression": "^1.8.1",
99
"express": "^4.22.1",

worldmap/worldmap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ function setMarker(data) {
18331833
if (data.SOG) { data.speed = data.SOG * 0.514444; data.SOG = data.SOG + " kt"; } // SOG is in knots
18341834

18351835
if (data.hasOwnProperty("icon")) {
1836-
var dir = parseFloat(data.track ?? data.hdg ?? data.heading ?? data.bearing ?? "0") + map.getBearing();
1836+
var dir = parseFloat(data.track ?? data.hdg ?? data.heading ?? data.bearing ?? data.COG ?? data.cog ??"0") + map.getBearing();
18371837
var siz = 32;
18381838
var sizc = 16;
18391839
if (data?.iconSize && !isNaN(data.iconSize)) {

0 commit comments

Comments
 (0)