import { Component , EventEmitter , Input , Output } from '@angular/core' ; import { Layer } from 'ol/layer' ; import { Source } from 'ol/source' ; import { HsLayerManagerService } from '../../../layermanager/layermanager.service' ; import { HsLayerUtilsService } from '../../../utils/layer-utils.service' ; @ Component ( { selector : 'hs-target-position' , templateUrl : './target-position.component.html' , } ) export class HsPositionComponent { @ Input ( ) addUnder : Layer < Source > | null ; @ Output ( ) addUnderChange = new EventEmitter < Layer < Source > | null > ( ) ; constructor ( public hsLayerUtilsService , public hsLayerManagerService ) { } updateChanges ( ) { this . addUnderChange . next ( this . addUnder ) ; } }