/// <reference types="googlemaps" />

import { Component, OnInit, Input } from '@angular/core';
import { RegPontService } from './shared/reg-pont.service';
import { TelepulesService } from './shared/telepules.service';
import { RegPont } from './shared/reg-pont';

@Component({
    selector: 'app-rp-terkep',
    templateUrl: './rp-terkep.component.html',
    styleUrls: ['./rp-terkep.component.less'],
})
export class RpTerkepComponent implements OnInit {
    selectedTelepulesLatLng: google.maps.LatLng;
    selectedRegPont: RegPont;
    @Input() regPontokUrl = '';
    @Input() telepulesekUrl = '';

    constructor(private regPontService: RegPontService, private telepulesService: TelepulesService) { }

    ngOnInit() {
        this.regPontService.regPontokUrl = this.regPontokUrl;
        this.telepulesService.telepulesekUrl = this.telepulesekUrl;
    }
}
