diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ed4de..37ac848 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### Change Log for Node-RED Worldmap - - v1.5.12 - Send click message to websocket on marker click - Issue #56 + - v1.5.13 - Send click message to websocket on marker click - Issue #56, #57 - v1.5.11 - Let search also try geocoding lookup if not found in marks. - v1.5.10 - Allow latest mark added to open popup, and allow `popped=false` to close. - v1.5.7 - Tidy up sidc entry, and drag-ability of nodes on drawing layer. diff --git a/README.md b/README.md index 81545e6..cf6a3a8 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ map web page for plotting "things" on. ### Updates -- v1.5.12 - Send click message to websocket on marker click - Issue #56 +- v1.5.13 - Send click message to websocket on marker click - Issue #56, #57 - v1.5.11 - Let search also try geocoding lookup if not found in marks. - v1.5.10 - Allow latest mark added to open popup, and allow `popped=false` to close. - v1.5.7 - Tidy up sidc entry, and drag-ability of nodes on drawing layer. diff --git a/package.json b/package.json index 2cf54d3..67c888e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "1.5.12", + "version": "1.5.13", "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/index.html b/worldmap/index.html index ee0984b..bfe99c0 100644 --- a/worldmap/index.html +++ b/worldmap/index.html @@ -1184,6 +1184,7 @@ function setMarker(data) { }); marker = L.marker(ll, {title:data.name, icon:myMarker, draggable:drag}); } + marker.name = data.name; // var createLabelIcon = function(labelText) { // return L.marker(new L.LatLng(51.05, -1.35), {icon:L.divIcon({ html:labelText })}); @@ -1191,7 +1192,6 @@ function setMarker(data) { // send new position at end of move event if point is draggable if (data.draggable === true) { - marker.name = data.name; if (data.icon) { marker.icon = data.icon; } if (data.iconCOlor) { marker.iconColor = data.iconColor; } if (data.SIDC) { marker.SIDC = data.SIDC.toUpperCase(); } diff --git a/worldmap/worldmap.appcache b/worldmap/worldmap.appcache index 7e4ac08..a8efda3 100644 --- a/worldmap/worldmap.appcache +++ b/worldmap/worldmap.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# date: Nov 9th 2018 - v1.5.12 +# date: Nov 9th 2018 - v1.5.13 CACHE: index.html