node-red-contrib-web-worldmap 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v4.2.1 - Revert use of optional chaining to extend life slightly. Issue #252
3
4
  - v4.2.0 - Let icons also be inline images data:image...
4
5
  - v4.1.0 - Add optional SOG, COG, altft, altm input properties.
5
6
  - v4.0.0 - Breaking - Better context menu variable substitution and retention
package/README.md CHANGED
@@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
13
13
 
14
14
  ### Updates
15
15
 
16
+ - v4.2.1 - Revert use of optional chaining to extend life slightly. Issue #252
16
17
  - v4.2.0 - Let icons also be inline images data:image...
17
18
  - v4.1.0 - Add optional SOG, COG, altft, altm input properties.
18
19
  - v4.0.0 - Breaking - Better context menu variable substitution and retention
@@ -64,7 +65,7 @@ Optional properties for **msg.payload** include
64
65
  - **alt | altitude | altft | altm** : Altitude in meters, but can use *altft* to specify feet instead.
65
66
  - **accuracy** : when combined with heading vector, draws an arc of possible direction.
66
67
  - **color** : CSS color name or #rrggbb value for heading vector line or accuracy polygon.
67
- - **icon** : <a href="https://fontawesome.com/v4.7.0/icons/" target="mapinfo">font awesome</a> icon name, <a href="https://github.com/Paul-Reed/weather-icons-lite" target="mapinfo">weather-lite</a> icon, :emoji name:, or https:// uri.
68
+ - **icon** : <a href="https://fontawesome.com/v4.7.0/icons/" target="mapinfo">font awesome</a> icon name, <a href="https://github.com/Paul-Reed/weather-icons-lite" target="mapinfo">weather-lite</a> icon, :emoji name:, or https:// or inline data:image/ uri.
68
69
  - **iconColor** : Standard CSS colour name or #rrggbb hex value.
69
70
  - **SIDC** : NATO symbology code (can be used instead of icon). See below.
70
71
  - **building** : OSMbulding GeoJSON feature set to add 2.5D buildings to buildings layer. See below.
@@ -92,7 +93,7 @@ If you use the name without the fa- prefix (eg `male`) you will get the icon ins
92
93
 
93
94
  You can also specify an emoji as the icon by using the :emoji name: syntax - for example `:smile:`. Here is a **[list of emojis](https://github.com/dceejay/RedMap/blob/master/emojilist.md)**.
94
95
 
95
- Or you can specify an image to load as an icon by setting the icon to http(s)://... By default it will be scaled to 32x32 pixels. You can change the size by setting **iconSize** to a number - eg 64. Example icon - `"https://img.icons8.com/windows/32/000000/bird.png"`
96
+ Or you can specify an image to load as an icon by setting the icon to http(s)://... By default it will be scaled to 32x32 pixels. You can change the size by setting **iconSize** to a number - eg 64. Example icon - `"https://img.icons8.com/windows/32/000000/bird.png"` or you can use an inline image of the form data:image/... which uses a base64 encoded image.
96
97
 
97
98
  There are also several special icons...
98
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
package/worldmap.js CHANGED
@@ -126,7 +126,7 @@ module.exports = function(RED) {
126
126
  if (message.action === "draw") {
127
127
  delete message.action;
128
128
  delete message.type;
129
- delete message.options?.pane;
129
+ if (message.options) { delete message.options.pane; }
130
130
  allPoints[message.name] = RED.util.cloneMessage(message);
131
131
  sendToRest(message,client.id);
132
132
  }