diff --git a/src/app/components/leaflet-map/leaflet-map.component.ts b/src/app/components/leaflet-map/leaflet-map.component.ts index 01bbd95..70a9041 100644 --- a/src/app/components/leaflet-map/leaflet-map.component.ts +++ b/src/app/components/leaflet-map/leaflet-map.component.ts @@ -28,6 +28,7 @@ export class LeafletMapComponent implements OnInit { private allPins: Pin[] = []; private pinCountries: { [pinId: string]: string } = {}; private contextMenu: L.Popup | null = null; + private showTutorial: boolean = false; availableCountries: string[] = []; availablePersons: string[] = []; @@ -56,6 +57,7 @@ export class LeafletMapComponent implements OnInit { this.route.queryParams.subscribe((params) => { const pinId = params['pin']; + if (pinId) { const marker = this.markersMap[pinId]; if (marker) { @@ -67,6 +69,8 @@ export class LeafletMapComponent implements OnInit { } } }); + + this.showTutorial = this.route.snapshot.paramMap.get('tutorial') === "true"; } private initializeMap(): void { diff --git a/src/app/components/register-page/register-page.component.ts b/src/app/components/register-page/register-page.component.ts index 48d9774..924ca98 100644 --- a/src/app/components/register-page/register-page.component.ts +++ b/src/app/components/register-page/register-page.component.ts @@ -84,7 +84,7 @@ export class RegisterPageComponent { this.closeRegisterModal(); setTimeout(() => { - this.router.navigate(['/map']); + this.router.navigate(['/map', {tutorial: true}]); }, 1); }, error: (response) => {