From 64443d4b1b23b598a5a3bfc809aa8dbe30b1651d Mon Sep 17 00:00:00 2001 From: nymkappa Date: Thu, 18 Aug 2022 15:25:11 +0200 Subject: [PATCH] Increase node size in channel map on node/channel pages --- .../nodes-channels-map/nodes-channels-map.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts index 033f944b1..57f07ba8f 100644 --- a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts +++ b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts @@ -31,6 +31,7 @@ export class NodesChannelsMap implements OnInit, OnDestroy { channelOpacity = 0.1; channelColor = '#466d9d'; channelCurve = 0; + nodeSize = 4; chartInstance = undefined; chartOptions: EChartsOption = {}; @@ -65,6 +66,10 @@ export class NodesChannelsMap implements OnInit, OnDestroy { if (this.style === 'graph') { this.seoService.setTitle($localize`Lightning nodes channels world map`); } + + if (['nodepage', 'channelpage'].includes(this.style)) { + this.nodeSize = 8; + } this.observable$ = this.activatedRoute.paramMap .pipe( @@ -214,7 +219,7 @@ export class NodesChannelsMap implements OnInit, OnDestroy { data: nodes, coordinateSystem: 'geo', geoIndex: 0, - symbolSize: 4, + symbolSize: this.nodeSize, tooltip: { show: true, backgroundColor: 'rgba(17, 19, 31, 1)',