Merge pull request #2323 from mempool/nymkappa/bugfix/node-size-map

Increase node size in channel map on node/channel pages
This commit is contained in:
wiz 2022-08-21 18:50:43 +09:00 committed by GitHub
commit c75ea29d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
channelOpacity = 0.1; channelOpacity = 0.1;
channelColor = '#466d9d'; channelColor = '#466d9d';
channelCurve = 0; channelCurve = 0;
nodeSize = 4;
chartInstance = undefined; chartInstance = undefined;
chartOptions: EChartsOption = {}; chartOptions: EChartsOption = {};
@ -65,6 +66,10 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
if (this.style === 'graph') { if (this.style === 'graph') {
this.seoService.setTitle($localize`Lightning nodes channels world map`); this.seoService.setTitle($localize`Lightning nodes channels world map`);
} }
if (['nodepage', 'channelpage'].includes(this.style)) {
this.nodeSize = 8;
}
this.observable$ = this.activatedRoute.paramMap this.observable$ = this.activatedRoute.paramMap
.pipe( .pipe(
@ -214,7 +219,7 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
data: nodes, data: nodes,
coordinateSystem: 'geo', coordinateSystem: 'geo',
geoIndex: 0, geoIndex: 0,
symbolSize: 4, symbolSize: this.nodeSize,
tooltip: { tooltip: {
show: true, show: true,
backgroundColor: 'rgba(17, 19, 31, 1)', backgroundColor: 'rgba(17, 19, 31, 1)',