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: `
0 && searchUtils.status == errorCodes.LOADING)"
class="cursor-not-allowed ">
`
})
export class SearchDataproviderMapComponent {
@Input() searchUtils;
@Input() oldTotalResults:number = 0;
@Input() loadPaging: boolean = true;
@Input() totalResults:number = 0;
@Input() mapUrl: string;
@Input() mapTooltipType: string ="";
@ViewChild(AlertModal) alertModalMap;
public errorCodes:ErrorCodes = new ErrorCodes();
constructor (private route: ActivatedRoute) {}
ngOnInit() {}
ngOnDestroy() {}
openMapModal() {
this.alertModalMap.isOpen = true;
this.alertModalMap.cancelButton = true;
this.alertModalMap.okButton = false;
this.alertModalMap.alertTitle = "Map of Content Providers";
this.alertModalMap.message = "";
this.alertModalMap.cancelButtonText = "Close";
}
}