node-red-contrib-web-worldmap 2.21.9 → 2.22.0

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,7 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v2.22.0 - Separate out layer events in worldmap in
4
+ - v2.21.9 - Unbreak Drawing layer that I must have broken recently
3
5
  - v2.21.8 - Let SIDC/icon short code be only 4 chars long
4
6
  - v2.21.5 - Fix handling of "old" ship nav to ship navigation
5
7
  - v2.21.4 - Fix speed leader length. Add transparentPixels option.
package/README.md CHANGED
@@ -11,6 +11,7 @@ map web page for plotting "things" on.
11
11
 
12
12
  ### Updates
13
13
 
14
+ - v2.22.0 - Separate out layer events in worldmap in
14
15
  - v2.21.9 - Unbreak Drawing layer that I must have broken recently
15
16
  - v2.21.8 - Let SIDC/icon short code be only 4 chars long
16
17
  - v2.21.5 - Fix handling of "old" ship nav to ship navigation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.21.9",
3
+ "version": "2.22.0",
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.html CHANGED
@@ -604,7 +604,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
604
604
  defaults: {
605
605
  name: {value:""},
606
606
  path: {value:"/worldmap"},
607
- events: {value:"connect,disconnect,point,bounds,files,draw,other"}
607
+ events: {value:"connect,disconnect,point,layer,bounds,files,draw,other"}
608
608
  },
609
609
  inputs:0,
610
610
  outputs:1,
@@ -620,7 +620,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
620
620
  },
621
621
  oneditprepare: function() {
622
622
  if ($("#node-input-events").val() === "all") {
623
- $("#node-input-events").val("connect,disconnect,point,bounds,files,draw,other");
623
+ $("#node-input-events").val("connect,disconnect,point,layer,bounds,files,draw,other");
624
624
  }
625
625
  $("#node-input-events").typedInput({type:"event", types:[{
626
626
  value: "event",
@@ -629,6 +629,7 @@ If <i>Web Path</i> is left empty, then by default <code>⌘⇧m</code> - <code>c
629
629
  { value: "connect", label: "Connect"},
630
630
  { value: "disconnect", label: "Disconnect"},
631
631
  { value: "point", label: "Add, move, delete point"},
632
+ { value: "layer", label: "Add, remove layers"},
632
633
  { value: "bounds", label: "Boundary change"},
633
634
  { value: "files", label: "File drop"},
634
635
  { value: "draw", label: "Drawing"},
package/worldmap.js CHANGED
@@ -252,6 +252,9 @@ module.exports = function(RED) {
252
252
  if ((node.events.indexOf("point")!==-1) && ((message.action === "point")||(message.action === "move")||(message.action === "delete") )) {
253
253
  setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});
254
254
  }
255
+ if ((node.events.indexOf("layer")!==-1) && ((message.action === "layer") )) {
256
+ setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});
257
+ }
255
258
  if ((node.events.indexOf("files")!==-1) && (message.action === "file")) {
256
259
  message.content = Buffer.from(message.content.split('base64,')[1], 'base64');
257
260
  setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});