node-red-contrib-web-worldmap 2.38.2 → 2.38.3

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,6 +1,6 @@
1
1
  ### Change Log for Node-RED Worldmap
2
2
 
3
- - v2.38.2 - Better fix for geojson multipoint icons.
3
+ - v2.38.3 - Better fix for geojson multipoint icons.
4
4
  - v2.38.1 - Fix for geojson multipoint icons.
5
5
  - v2.38.0 - Return client headers as part of connect message.
6
6
  - v2.37.4 - Fix sessionid specific data not to be sent on reload/refresh
package/README.md CHANGED
@@ -13,7 +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.38.2 - Better fix for geojson multipoint icons.
16
+ - v2.38.3 - Better fix for geojson multipoint icons.
17
17
  - v2.38.1 - Fix for geojson multipoint icons.
18
18
  - v2.38.0 - Return client headers as part of connect message.
19
19
  - v2.37.4 - Fix sessionid specific data not to be sent on reload/refresh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-web-worldmap",
3
- "version": "2.38.2",
3
+ "version": "2.38.3",
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",
@@ -2853,7 +2853,7 @@ function doGeojson(n,g,l,o) {
2853
2853
  className: "natoicon",
2854
2854
  });
2855
2855
  }
2856
- else if (feature.properties["marker-symbol"].substr(0,3) === "fa-") {
2856
+ else if (feature.properties.hasOwnProperty("marker-symbol") && feature.properties["marker-symbol"].substr(0,3) === "fa-") {
2857
2857
  try {
2858
2858
  var col = feature.properties["marker-color"] ?? "#910000";
2859
2859
  var imod = "";
@@ -2896,7 +2896,6 @@ function doGeojson(n,g,l,o) {
2896
2896
  if ( tx !== "{}") {
2897
2897
  l.bindPopup('<pre style="overflow-x: scroll">'+tx.replace(/[\{\}"]/g,'')+'</pre>');
2898
2898
  }
2899
- console.log("TX",tx.replace(/[\{\}"]/g,''))
2900
2899
  }
2901
2900
  if (o && o.hasOwnProperty("clickable") && o.clickable === true) {
2902
2901
  l.on('click', function (e) {