This commit is contained in:
Dave Conway-Jones 2023-08-25 14:35:44 +01:00
parent 4aa3403572
commit d3259b7189
No known key found for this signature in database
GPG Key ID: 1DDB0E91A28C2643
5 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,6 @@
### Change Log for Node-RED Worldmap ### 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.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.41.0 - Bump leaflet libs to latest stable (1.9.4)
- v2.40.1 - Fix missing countries overlay when starting disconnected. - v2.40.1 - Fix missing countries overlay when starting disconnected.

View File

@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
### Updates ### 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.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.41.0 - Bump leaflet libs to latest stable (1.9.4)
- v2.40.1 - Fix missing countries overlay when starting disconnected. - v2.40.1 - Fix missing countries overlay when starting disconnected.

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-web-worldmap", "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.", "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
"dependencies": { "dependencies": {
"@turf/bezier-spline": "~6.5.0", "@turf/bezier-spline": "~6.5.0",

View File

@ -246,7 +246,6 @@
iconAnchor: [14, 14], iconAnchor: [14, 14],
}) })
if (feature.properties && feature.properties.SymbolSpecification) { if (feature.properties && feature.properties.SymbolSpecification) {
console.log("DING",feature.properties.SymbolSpecification)
var mysymbol = new ms.Symbol(feature.properties.SymbolSpecification.split(':')[1]); var mysymbol = new ms.Symbol(feature.properties.SymbolSpecification.split(':')[1]);
mysymbol = mysymbol.setOptions({ size:20 }); mysymbol = mysymbol.setOptions({ size:20 });
kicon = L.icon({ kicon = L.icon({
@ -254,7 +253,7 @@
iconAnchor: [mysymbol.getAnchor().x, mysymbol.getAnchor().y], 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); return L.marker(latlng);
} }
else { else {

View File

@ -2651,7 +2651,6 @@ function doCommand(cmd) {
}); });
let arr; let arr;
if (cmd.map.hasOwnProperty("kmz")) { if (cmd.map.hasOwnProperty("kmz")) {
console.log("KMZ",typeof cmd.map.kmz)
if (typeof cmd.map.kmz === "string") { if (typeof cmd.map.kmz === "string") {
arr = new Uint8Array(cmd.map.kmz.length); arr = new Uint8Array(cmd.map.kmz.length);
for (let i=0; i<cmd.map.kmz.length; i++) { for (let i=0; i<cmd.map.kmz.length; i++) {