import { Component , Input } from '@angular/core' ; import { HsAddDataCommonFileService } from '../common-file.service' ; import { HsAddDataCommonService } from '../common.service' ; import { HsFileService } from '../../file/file.service' ; import { HsLanguageService } from './../../../../components/language/language.service' ; import { HsUploadedFiles } from './../../../../common/upload/upload.component' ; @ Component ( { selector : 'hs-new-layer-form' , templateUrl : 'new-layer-form.component.html' , } ) export class HsNewLayerFormComponent { advancedPanelVisible = false ; @ Input ( ) data : any ; constructor ( public hsAddDataCommonService , public hsAddDataCommonFileService , public hsLanguageService , public hsFileService ) { } sldTitle ( ) { return this . data . sld ? this . data . sld . name : this . hsLanguageService . getTranslationIgnoreNonExisting ( 'ADDLAYERS.Vector' , 'addSld' ) ; } async read ( evt ) { await this . hsFileService . read ( evt ) ; } }