@@ -3255,6 +3255,9 @@ function doGeojson(n,g,l,o,i) { // name, geojson, layer, options, icon
32553255 delete feature . properties [ "fill-opacity" ] ;
32563256 delete feature . properties [ "font-color" ] ;
32573257 delete feature . properties [ "font-opacity" ] ;
3258+ // delete feature.properties["styleUrl"];
3259+ delete feature . properties [ "styleHash" ] ;
3260+ delete feature . properties [ "styleMapHash" ] ;
32583261 }
32593262 if ( feature . hasOwnProperty ( "style" ) ) {
32603263 //console.log("GSTYLE", feature.style)
@@ -3338,12 +3341,21 @@ function doGeojson(n,g,l,o,i) { // name, geojson, layer, options, icon
33383341 delete tx [ "_gpxType" ] ;
33393342 var n = tx [ "name" ] ;
33403343 delete tx [ "name" ] ;
3341- tx = JSON . stringify ( tx , null , ' ' ) ;
3342- if ( tx !== "{}" ) {
3343- var gp = '<pre style="overflow-x:scroll">' + tx . replace ( / [ \{ \} " ] / g, '' ) + '</pre>'
3344- if ( n ) { gp = '<b>' + n + '</b>' + gp ; }
3345- l . bindPopup ( gp ) ;
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 ) ; }
33473359 }
33483360 if ( o && o . hasOwnProperty ( "clickable" ) && o . clickable === true ) {
33493361 l . on ( 'click' , function ( e ) {
0 commit comments