diff --git a/CHANGELOG.md b/CHANGELOG.md index 8761258..21cd3ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### Change Log for Node-RED Worldmap + - v2.42.1 - Remove extraneous debug logging, fix KMZ icons - v2.42.0 - Add handling for TAK type spots, waypoints, alerts, sensors. Better KML/KMZ handling. - v2.41.0 - Bump leaflet libs to latest stable (1.9.4) - v2.40.1 - Fix missing countries overlay when starting disconnected. diff --git a/README.md b/README.md index ec99e30..6bac28d 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D% ### Updates +- v2.42.1 - Remove extraneous debug logging, fix KMZ icons - v2.42.0 - Add handling for TAK type spots, waypoints, alerts, sensors. Better KML/KMZ handling. - v2.41.0 - Bump leaflet libs to latest stable (1.9.4) - v2.40.1 - Fix missing countries overlay when starting disconnected. diff --git a/package.json b/package.json index fe55f47..9ac10b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-web-worldmap", - "version": "2.42.0", + "version": "2.42.1", "description": "A Node-RED node to provide a web page of a world map for plotting things on.", "dependencies": { "@turf/bezier-spline": "~6.5.0", diff --git a/worldmap/leaflet/leaflet-kmz.js b/worldmap/leaflet/leaflet-kmz.js index ddcb731..d9e3e4b 100644 --- a/worldmap/leaflet/leaflet-kmz.js +++ b/worldmap/leaflet/leaflet-kmz.js @@ -246,7 +246,6 @@ iconAnchor: [14, 14], }) if (feature.properties && feature.properties.SymbolSpecification) { - console.log("DING",feature.properties.SymbolSpecification) var mysymbol = new ms.Symbol(feature.properties.SymbolSpecification.split(':')[1]); mysymbol = mysymbol.setOptions({ size:20 }); kicon = L.icon({ @@ -254,7 +253,7 @@ iconAnchor: [mysymbol.getAnchor().x, mysymbol.getAnchor().y], }); } - if (kicon.iconUrl === undefined) { // No icon found so just use default marker. + if (kicon.options.iconUrl === undefined) { // No icon found so just use default marker. return L.marker(latlng); } else { diff --git a/worldmap/worldmap.js b/worldmap/worldmap.js index 4980d9b..38da4e2 100644 --- a/worldmap/worldmap.js +++ b/worldmap/worldmap.js @@ -2651,7 +2651,6 @@ function doCommand(cmd) { }); let arr; if (cmd.map.hasOwnProperty("kmz")) { - console.log("KMZ",typeof cmd.map.kmz) if (typeof cmd.map.kmz === "string") { arr = new Uint8Array(cmd.map.kmz.length); for (let i=0; i