node-red-contrib-web-worldmap 5.5.3 → 5.5.4
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 +1 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/worldmap/worldmap.js +18 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v5.5.4 - slight tweak to geojson property display as table
|
|
3
4
|
- v5.5.3 - ensure SOG gets picked up earlier in chain
|
|
4
5
|
- v5.5.2 - Slight improvement for on/offline choice of map
|
|
5
6
|
- v5.5.1 - Fix maxNativeZoom for pmtiles to pull from tiles files. Issue #312
|
package/README.md
CHANGED
|
@@ -10,6 +10,7 @@ A <a href="https://nodered.org" target="mapinfo">Node-RED</a> node to provide a
|
|
|
10
10
|
|
|
11
11
|
### Updates
|
|
12
12
|
|
|
13
|
+
- v5.5.4 - slight tweak to geojson property display as table
|
|
13
14
|
- v5.5.3 - ensure SOG gets picked up earlier in chain
|
|
14
15
|
- v5.5.2 - Slight improvement for on/offline choice of map
|
|
15
16
|
- v5.5.1 - Fix maxNativeZoom for pmtiles to pull from tiles files. Issue #312
|
package/package.json
CHANGED
package/worldmap/worldmap.js
CHANGED
|
@@ -3255,6 +3255,9 @@ function doGeojson(n,g,l,o,i) { // name, geojson, layer, options, icon
|
|
|
3255
3255
|
delete feature.properties["fill-opacity"];
|
|
3256
3256
|
delete feature.properties["font-color"];
|
|
3257
3257
|
delete feature.properties["font-opacity"];
|
|
3258
|
+
// delete feature.properties["styleUrl"];
|
|
3259
|
+
delete feature.properties["styleHash"];
|
|
3260
|
+
delete feature.properties["styleMapHash"];
|
|
3258
3261
|
}
|
|
3259
3262
|
if (feature.hasOwnProperty("style")) {
|
|
3260
3263
|
//console.log("GSTYLE", feature.style)
|
|
@@ -3338,12 +3341,21 @@ function doGeojson(n,g,l,o,i) { // name, geojson, layer, options, icon
|
|
|
3338
3341
|
delete tx["_gpxType"];
|
|
3339
3342
|
var n = tx["name"];
|
|
3340
3343
|
delete tx["name"];
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3344
|
+
var tx2 = Object.entries(tx);
|
|
3345
|
+
var gp = '<table style="border:none;">';
|
|
3346
|
+
for (var i=0; i < tx2.length; i++) {
|
|
3347
|
+
gp += '<tr><td style="border:none; vertical-align:top; padding-right:3px;">'+tx2[i][0]+'</td><td style="border:none; vertical-align:top;">'+tx2[i][1]+'</td></tr>';
|
|
3348
|
+
}
|
|
3349
|
+
gp += '</table>';
|
|
3350
|
+
//tx = JSON.stringify(tx,null,' ');
|
|
3351
|
+
// if ( tx !== "{}") {
|
|
3352
|
+
// //var gp = '<pre style="overflow-x:scroll">'+tx.replace(/[\{\}"]/g,'')+'</pre>'
|
|
3353
|
+
// var gp = '<pre>'+tx.replace(/[\{\}"]/g,'')+'</pre>'
|
|
3354
|
+
// if (n) { gp = '<b>'+n+'</b>' + gp; }
|
|
3355
|
+
// l.bindPopup(gp);
|
|
3356
|
+
// }
|
|
3357
|
+
if (n) { gp = '<b>'+n+'</b>' + gp; }
|
|
3358
|
+
if (gp.length > 36) { l.bindPopup(gp); }
|
|
3347
3359
|
}
|
|
3348
3360
|
if (o && o.hasOwnProperty("clickable") && o.clickable === true) {
|
|
3349
3361
|
l.on('click', function (e) {
|