diff --git a/worldmap.html b/worldmap.html
index ac710af..940cad3 100644
--- a/worldmap.html
+++ b/worldmap.html
@@ -617,6 +617,7 @@ If Web Path is left empty, then by default ⌘⇧m
- c
⌘⇧m
- c
{ value: "connect", label: "Connect"},
{ value: "disconnect", label: "Disconnect"},
{ value: "point", label: "Add, move, delete point"},
+ { value: "draw", label: "Add, edit or delete drawing"},
{ value: "layer", label: "Add, remove layers"},
{ value: "bounds", label: "Boundary change"},
{ value: "files", label: "File drop"},
- { value: "draw", label: "Drawing"},
{ value: "other", label: "All other"}
]
}]});
diff --git a/worldmap.js b/worldmap.js
index fd305bf..c261145 100644
--- a/worldmap.js
+++ b/worldmap.js
@@ -139,7 +139,7 @@ module.exports = function(RED) {
delete message.from;
sendToRest(message,client.id);
}
- if (message.action === "delete") {
+ if (message.action === "delete" || message.action === "drawdelete") {
delete allPoints[message.name];
sendToRest(message,client.id);
}
@@ -313,7 +313,7 @@ module.exports = function(RED) {
message.content = Buffer.from(message.content.split('base64,')[1], 'base64');
setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});
}
- if ((node.events.indexOf("draw")!==-1) && (message.action === "draw")) {
+ if ((node.events.indexOf("draw")!==-1) && ((message.action === "draw")||(message.action === "drawdelete"))) {
setImmediate(function() {node.send({payload:message, topic:node.path.substr(1), _sessionid:client.id, _sessionip:sessionip})});
}
if (node.events.indexOf("other")!==-1 && "connected,point,delete,move,draw,files,bounds".indexOf(message.action) === -1) {
diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js
index 17d70c9..8b2c3c2 100644
--- a/worldmap/worldmap.js
+++ b/worldmap/worldmap.js
@@ -1384,9 +1384,11 @@ helpText += 'The default is that only visible layers add to the heatmap.