| @@ -1,4 +1,4 @@ | |||
| import { AfterViewInit, Component, OnInit } from '@angular/core'; | |||
| import {AfterViewInit, Component, OnDestroy, OnInit} from '@angular/core'; | |||
| import * as L from 'leaflet'; | |||
| import {Subscription} from "rxjs"; | |||
| import {SocketService} from "../../../shared/services/socket.service"; | |||
| @@ -8,7 +8,7 @@ import {SocketService} from "../../../shared/services/socket.service"; | |||
| templateUrl: './map.component.html', | |||
| styleUrls: ['./map.component.scss'] | |||
| }) | |||
| export class MapComponent implements OnInit, AfterViewInit { | |||
| export class MapComponent implements OnInit, AfterViewInit, OnDestroy { | |||
| private map: any; | |||
| houseIcon = L.icon({ | |||
| iconUrl: '../../../../assets/images/icon.png', | |||