import {Component, Input, ViewChild} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {AlertModal} from '../../utils/modal/alert'; import {ErrorCodes} from '../../utils/properties/errorCodes'; @Component({ selector: 'search-dataprovider-map', template: ` ` }) export class SearchDataproviderMapComponent { @Input() searchUtils; @Input() oldTotalResults:number = 0; @Input() loadPaging: boolean = true; @Input() totalResults:number = 0; @Input() mapUrl: string; @Input() mapTooltipType: string =""; @ViewChild('AlertModalMap') alertModalMap: AlertModal; public errorCodes:ErrorCodes = new ErrorCodes(); constructor (private route: ActivatedRoute) {} ngOnInit() {} ngOnDestroy() {} openMapModal() { this.alertModalMap.cancelButton = true; this.alertModalMap.okButton = false; this.alertModalMap.alertTitle = "Map of Content Providers"; this.alertModalMap.message = ""; this.alertModalMap.cancelButtonText = "Close"; this.alertModalMap.open(); } }