node-red-contrib-web-worldmap 2.42.0 → 2.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
+ - v2.42.1 - Remove extraneous debug logging, fix KMZ icons
3
4
  - v2.42.0 - Add handling for TAK type spots, waypoints, alerts, sensors. Better KML/KMZ handling.
4
5
  - v2.41.0 - Bump leaflet libs to latest stable (1.9.4)
5
6
  - v2.40.1 - Fix missing countries overlay when starting disconnected.
package/README.md CHANGED
@@ -13,6 +13,7 @@ Feel free to [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%
13
13
 
14
14
  ### Updates
15
15
 
16
+ - v2.42.1 - Remove extraneous debug logging, fix KMZ icons
16
17
  - v2.42.0 - Add handling for TAK type spots, waypoints, alerts, sensors. Better KML/KMZ handling.
17
18
  - v2.41.0 - Bump leaflet libs to latest stable (1.9.4)
18
19
  - v2.40.1 - Fix missing countries overlay when starting disconnected.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.42.0",
3
+ "version": "2.42.1",
4
4
  "description": "A Node-RED node to provide a web page of a world map for plotting things on.",
5
5
  "dependencies": {
6
6
  "@turf/bezier-spline": "~6.5.0",
@@ -246,7 +246,6 @@
246
246
  iconAnchor: [14, 14],
247
247
  })
248
248
  if (feature.properties && feature.properties.SymbolSpecification) {
249
- console.log("DING",feature.properties.SymbolSpecification)
250
249
  var mysymbol = new ms.Symbol(feature.properties.SymbolSpecification.split(':')[1]);
251
250
  mysymbol = mysymbol.setOptions({ size:20 });
252
251
  kicon = L.icon({
@@ -254,7 +253,7 @@
254
253
  iconAnchor: [mysymbol.getAnchor().x, mysymbol.getAnchor().y],
255
254
  });
256
255
  }
257
- if (kicon.iconUrl === undefined) { // No icon found so just use default marker.
256
+ if (kicon.options.iconUrl === undefined) { // No icon found so just use default marker.
258
257
  return L.marker(latlng);
259
258
  }
260
259
  else {
@@ -2651,7 +2651,6 @@ function doCommand(cmd) {
2651
2651
  });
2652
2652
  let arr;
2653
2653
  if (cmd.map.hasOwnProperty("kmz")) {
2654
- console.log("KMZ",typeof cmd.map.kmz)
2655
2654
  if (typeof cmd.map.kmz === "string") {
2656
2655
  arr = new Uint8Array(cmd.map.kmz.length);
2657
2656
  for (let i=0; i<cmd.map.kmz.length; i++) {