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