Merge branch 'master' into nymkappa/feature/hide-map-if-no-geoloc

This commit is contained in:
wiz
2022-08-21 21:48:34 +09:00
committed by GitHub
63 changed files with 1727 additions and 339 deletions

View File

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