nodes link

This commit is contained in:
KarthiKeyanZ 2023-11-22 13:45:12 +05:30
parent a5c8c37ebf
commit 6a79be11f8
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@
<ul class="navbar-nav"> <ul class="navbar-nav">
<li class="nav-item"><a href="https://epic.tech/" target="_blank" class="nav-link">Epic Cash</a></li> <li class="nav-item"><a href="https://epic.tech/" target="_blank" class="nav-link">Epic Cash</a></li>
<li class="nav-item"><a href="/api-index" class="nav-link">API</a></li> <li class="nav-item"><a href="/api-index" class="nav-link">API</a></li>
<li class="nav-item"><a routerLink="/nodes-distribution" class="nav-link">Nodes</a></li>
<li class="nav-item yrvsel"> <li class="nav-item yrvsel">
<span class="small">You are viewing </span> <span class="small">You are viewing </span>
<!-- <i class="arrow_drpdwn net_dropdwn" for="fmnet"></i> --> <!-- <i class="arrow_drpdwn net_dropdwn" for="fmnet"></i> -->

View File

@ -21,8 +21,9 @@ export class LocationComponent implements AfterViewInit {
} }
private initMap(): void { private initMap(): void {
const isMobile = window.innerWidth < 768;
this.map = L.map('map', { this.map = L.map('map', {
center: [30, -20], center: [isMobile ? 50 : 30, isMobile ? 20 : -20],
zoom: 3, zoom: 3,
maxBounds: L.latLngBounds(L.latLng(-90, -180), L.latLng(90, 180)) , // Disable horizontal scrolling maxBounds: L.latLngBounds(L.latLng(-90, -180), L.latLng(90, 180)) , // Disable horizontal scrolling
bounceAtZoomLimits:true, bounceAtZoomLimits:true,