diff --git a/CHANGELOG.md b/CHANGELOG.md index 68a45a2..3d04e15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - v1.3.2 - Bugfix for inline svg icons - v1.3.1 - Allow `msg.payload.popup = true` to auto open the info popup. - v1.3.0 - Add initial 3D page (worldmap/index3d.html), Add ability to add KML, GPX and TOPOJSON overlay layers and optional zoom to fit. Change all http: links to https: - v1.2.4 - Let weblink also specify target page. eg `msg.payload.weblink = {name:"BBC News", url:"news.bbc.co.uk", target:"_new"}` diff --git a/README.md b/README.md index b3cadbb..e8d714d 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,14 @@ ![NPM version](https://badge.fury.io/js/node-red-contrib-web-worldmap.svg) -A Node-RED node to provide world +A Node-RED node to provide world map web page for plotting "things" on. ![Map Image](https://dceejay.github.io/pages/images/redmap.png) ### Updates +- v1.3.2 - Bugfix for inline svg icons - v1.3.1 - Allow `msg.payload.popup = true` to auto open the info popup. - v1.3.0 - Add initial 3D page (worldmap/index3d.html), Add ability to add KML, GPX and TOPOJSON overlay layers and optional zoom to fit. - v1.2.4 - Let weblink also specify target page. eg `msg.payload.weblink = {name:"BBC News", url:"news.bbc.co.uk", target:"_new"}` diff --git a/package.json b/package.json index d6b7128..50f67be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "1.3.1", + "version": "1.3.2", "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 d26d5bf..b225b7c 100644 --- a/worldmap/index.html +++ b/worldmap/index.html @@ -859,7 +859,7 @@ function setMarker(data) { var words=""+data.name+"
"; // Create the icons... handle plane, car, ship, wind, earthquake as specials - var marker, mymarker; + var marker, myMarker; var icon, q; //console.log("ICON",data.icon); if (data.icon === "ship") { @@ -874,7 +874,7 @@ function setMarker(data) { else if (data.icon === "plane") { data.iconColor = data.iconColor || "black"; if (data.hasOwnProperty("squawk")) { data.iconColor = "red"; } - icon = ''; + icon = ''; icon += ''; var svgplane = "data:image/svg+xml;base64," + btoa(icon); var dir = data.hdg || data.bearing; @@ -890,7 +890,7 @@ function setMarker(data) { else if (data.icon === "uav") { data.iconColor = data.iconColor || "black"; if (data.hasOwnProperty("squawk")) { data.iconColor = "red"; } - icon = ''; + icon = ''; icon+= ''; var svguav = "data:image/svg+xml;base64," + btoa(icon); var dir = data.hdg || data.bearing; @@ -903,7 +903,7 @@ function setMarker(data) { } else if (data.icon === "car") { data.iconColor = data.iconColor || "black"; - icon = ''; + icon = ''; icon += ''; var svgcar = "data:image/svg+xml;base64," + btoa(icon); var dir = data.hdg || data.bearing; @@ -916,7 +916,7 @@ function setMarker(data) { } else if (data.icon === "arrow") { data.iconColor = data.iconColor || "black"; - icon = ''; + icon = ''; icon += ''; var svgarrow = "data:image/svg+xml;base64," + btoa(icon); var dir = data.hdg || data.bearing; @@ -929,7 +929,7 @@ function setMarker(data) { } else if (data.icon === "wind") { data.iconColor = data.iconColor || "black"; - icon = ''; + icon = ''; icon += ''; var svgwind = "data:image/svg+xml;base64," + btoa(icon); var dir = data.hdg || data.bearing; @@ -942,7 +942,7 @@ function setMarker(data) { } else if (data.icon === "satellite") { data.iconColor = data.iconColor || "black"; - icon = ''; + icon = ''; icon += ''; icon += ''; icon += ''; @@ -959,7 +959,7 @@ function setMarker(data) { } else if (data.icon === "locate") { data.iconColor = data.iconColor || "cyan"; - icon = ''; + icon = ''; icon += ''; icon += ''; icon += ''; diff --git a/worldmap/worldmap.appcache b/worldmap/worldmap.appcache index 59105d2..8cd7310 100644 --- a/worldmap/worldmap.appcache +++ b/worldmap/worldmap.appcache @@ -1,5 +1,5 @@ CACHE MANIFEST -# date: June 30th 2018 - v1.3.1 +# date: June 30th 2018 - v1.3.2 CACHE: index.html