From ae129e0781b3acc1293ab43f5fd23310de1498c1 Mon Sep 17 00:00:00 2001 From: grata Date: Mon, 6 Mar 2023 15:18:56 +0100 Subject: [PATCH] started to add "spotlight" --- src/app/home/home.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 5fa9a5b..3d44e1b 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -1,4 +1,5 @@ -import {Component, OnInit} from '@angular/core'; +import {AfterContentInit, AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core'; +import {debounceTime, distinctUntilChanged, fromEvent, Subject} from "rxjs"; interface Luogo { nome: string; @@ -11,7 +12,10 @@ interface Luogo { templateUrl: './home.component.html', styleUrls: ['./home.component.css'] }) -export class HomeComponent implements OnInit { +export class HomeComponent implements OnInit, AfterViewInit { + + luoghiPopup: Subject = new Subject() + latitude: number | undefined; longitude: number | undefined; backgroundColor: string | undefined;