node-red-contrib-web-worldmap 2.37.0 → 2.37.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,10 +1,11 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
3
4
  - v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
4
5
  - v2.36.0 - Add edge icons for SIDC markers just off the map.
5
6
  - v2.35.0 - Let clickable:false work for markers as well.
6
- - v2.34.0 - Let icon "url" be a local fixed path (PR #223)
7
- - v2.33.0 - Let shapes create click event. (from PR #221)
7
+ - v2.34.0 - Let icon "url" be a local fixed path. PR #223
8
+ - v2.33.0 - Let shapes create click event. from PR #221
8
9
  Fix heatmap delete point bug. Issue #222
9
10
  - v2.32.3 - Fix map split in iframe position
10
11
  - v2.32.1 - Let command.heatmap replace complete heatmap array.
package/README.md CHANGED
@@ -11,11 +11,12 @@ map web page for plotting "things" on.
11
11
 
12
12
  ### Updates
13
13
 
14
+ - v2.37.1 - Warn (and drop) messages that are missing a payload. Issue #229
14
15
  - v2.37.0 - Allow fly instead of fit option when using command to move view window. (PR #225)
15
16
  - v2.36.0 - Add edge icons for SIDC markers just off the map.
16
17
  - v2.35.0 - Let clickable:false work for markers as well.
17
- - v2.34.0 - Let icon "url" be a local fixed path (PR #223)
18
- - v2.33.0 - Let shapes create click event. (from PR #221)
18
+ - v2.34.0 - Let icon "url" be a local fixed path. PR #223
19
+ - v2.33.0 - Let shapes create click event. from PR #221
19
20
  Fix heatmap delete point bug. Issue #222
20
21
  - v2.32.2 - Fix map split in iframe position
21
22
  - v2.32.1 - Let command.map.heatmap replace complete heatmap array.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.37.0",
3
+ "version": "2.37.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
@@ -121,6 +121,7 @@ module.exports = function(RED) {
121
121
  node.status({fill:"green",shape:"dot",text:"connected "+Object.keys(clients).length,_sessionid:client.id});
122
122
  }
123
123
  node.on('input', function(msg) {
124
+ if (!msg.hasOwnProperty("payload")) { node.warn("Missing payload"); return; }
124
125
  if (msg.hasOwnProperty("_sessionid")) {
125
126
  if (clients.hasOwnProperty(msg._sessionid)) {
126
127
  clients[msg._sessionid].write(JSON.stringify(msg.payload));