diff --git a/src/app/shared/components/siteheader/siteheader.component.html b/src/app/shared/components/siteheader/siteheader.component.html index ff99996..80d1c40 100644 --- a/src/app/shared/components/siteheader/siteheader.component.html +++ b/src/app/shared/components/siteheader/siteheader.component.html @@ -13,6 +13,7 @@ <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="/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"> <span class="small">You are viewing </span> <!-- <i class="arrow_drpdwn net_dropdwn" for="fmnet"></i> --> diff --git a/src/app/view/location/location.component.ts b/src/app/view/location/location.component.ts index 9e7e080..2c069c6 100644 --- a/src/app/view/location/location.component.ts +++ b/src/app/view/location/location.component.ts @@ -21,8 +21,9 @@ export class LocationComponent implements AfterViewInit { } private initMap(): void { + const isMobile = window.innerWidth < 768; this.map = L.map('map', { - center: [30, -20], + center: [isMobile ? 50 : 30, isMobile ? 20 : -20], zoom: 3, maxBounds: L.latLngBounds(L.latLng(-90, -180), L.latLng(90, 180)) , // Disable horizontal scrolling bounceAtZoomLimits:true,