@@ -59,11 +59,12 @@ casedata = mod_casedata.get_casedata();
59
59
// Source data GeoJSON
60
60
const geodata = casedata [ 'geojsondata' ]
61
61
62
-
62
+ const style = 'pos' ;
63
63
const MAP_STYLE = {
64
64
pos_no_label : 'https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json' ,
65
65
pos : 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json' ,
66
- dark : 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json'
66
+ dark : 'https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json' ,
67
+ none :''
67
68
} ;
68
69
69
70
@@ -402,9 +403,10 @@ export default function App({ refdata = data, refflowdata = flowdata, ggdata = g
402
403
popup . name = info . object . properties . NAME
403
404
popup . info = "Substation Info"
404
405
} else {
405
- var popup = { } ;
406
- popup . name = info . object . properties . NAME
407
- popup . info = "Line Info"
406
+ var popup = { } ;
407
+ var loading = Math . abs ( info . object . properties . PF / info . object . properties . RATE_A ) * 100.0 ;
408
+ popup . name = info . object . properties . NAME
409
+ popup . info = "KV: " + info . object . properties . KV . toFixed ( 2 ) + "KV \nLoading: " + loading . toFixed ( 2 ) + "%" ;
408
410
}
409
411
setShowPopup ( showPopup => ( { ...showPopup , ...popup } ) ) ;
410
412
} else if ( info . layer . id == "gen-column" ) {
@@ -1479,7 +1481,7 @@ export default function App({ refdata = data, refflowdata = flowdata, ggdata = g
1479
1481
1480
1482
1481
1483
< StaticMap reuseMaps
1482
- mapStyle = { mapStyle [ 'pos' ] }
1484
+ mapStyle = { mapStyle [ style ] }
1483
1485
preventStyleDiffing = { true }
1484
1486
initialViewState = { INITIAL_VIEW_STATE }
1485
1487
>
0 commit comments