From c0c20f6e6a9eb542f3937dc5c7d1c079ed7d828d Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 15 Dec 2020 11:02:12 +0000 Subject: [PATCH] Use heading more correctly, and add track property demote bearing update readme and examples --- CHANGELOG.md | 1 + README.md | 23 ++++++++++---------- package.json | 2 +- worldmap.html | 6 ++--- worldmap/worldmap.js | 52 ++++++++++++++++++++++++++++---------------- 5 files changed, 50 insertions(+), 34 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32e88e0..cf0fc77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - 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.0 - Allow track and image files to be dragged onto the map, if enabled - v2.6.1 - Better fit for worldmap when in ui_template diff --git a/README.md b/README.md index 2fea539..b05c413 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ map web page for plotting "things" on. ### Updates +- 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.0 - Allow track and image files to be dragged onto the map, if enabled - v2.6.1 - Better fit for worldmap when in ui_template @@ -54,10 +55,10 @@ Optional properties include - **deleted** : set to true to remove the named marker. (default false) - **draggable** : set to true to allow marker to be moved. (default false) - **layer** : specify a layer on the map to add marker to. (default "unknown") - - **speed** : when combined with bearing, draws a vector. - - **bearing** : when combined with speed, draws a vector. - - **accuracy** : when combined with bearing, draws a polygon of possible direction. - - **color** : CSS color name or #rrggbb value for bearing line or accuracy polygon + - **track | hdg | heading | bearing** : when combined with speed, draws a vector. (only first will be used) + - **speed** : when combined with heading, draws a vector. + - **accuracy** : when combined with heading vector, draws a polygon of possible direction. + - **color** : CSS color name or #rrggbb value for heading vector line or accuracy polygon - **icon** : font awesome icon name, weather-lite icon, :emoji name:, or https:// - **iconColor** : Standard CSS colour name or #rrggbb hex value. - **SIDC** : NATO symbology code (can be used instead of icon). See below. @@ -90,13 +91,13 @@ Or you can specify an image to load as an icon by setting the icon to http(s):// There are also several special icons... - - **plane** : a plane icon that aligns with the bearing of travel. - - **ship** : a ship icon that aligns with the bearing of travel. - - **car** : a car icon that aligns with the bearing of travel. - - **bus** : a bus/coach icon that aligns with the bearing of travel. - - **uav** : a small plane icon that aligns with the bearing of travel. - - **helicopter** : a small helicopter icon that aligns with the bearing of travel. - - **arrow** : a map GPS arrow type pointer that aligns with the bearing of travel. + - **plane** : a plane icon that aligns with the heading of travel. + - **ship** : a ship icon that aligns with the heading of travel. + - **car** : a car icon that aligns with the heading of travel. + - **bus** : a bus/coach icon that aligns with the heading of travel. + - **uav** : a small plane icon that aligns with the heading of travel. + - **helicopter** : a small helicopter icon that aligns with the heading of travel. + - **arrow** : a map GPS arrow type pointer that aligns with the heading of travel. - **wind** : a wind arrow that points in the direction the wind is coming FROM. - **satellite** : a small satellite icon. - **iss** : a slightly larger icon for the ISS. diff --git a/package.json b/package.json index 7eae9c6..d4ec0b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.7.1", + "version": "2.8.0", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "cgi": "0.3.1", diff --git a/worldmap.html b/worldmap.html index 7cef91e..7231fa3 100644 --- a/worldmap.html +++ b/worldmap.html @@ -129,9 +129,9 @@ then by default ⌘⇧m - ctrl-shift-m will load the m

Optional properties include