Refactoring types

This commit is contained in:
Willem Dantuma
2021-10-05 13:46:10 +02:00
parent 4ef077f8d7
commit 160eb10aba
31 changed files with 118 additions and 102 deletions

View File

@@ -1,14 +1,15 @@
import { Component, Input } from '@angular/core';
import { layer } from 'ol';
import { Layer } from 'ol/layer';
import { Source } from 'ol/source';
@Component({
selector: 'fm-map-zoom-to-show-alert',
template: '<div *fmMapIfZoomToShow="layer$" class="alert alert-info"><i class="fas fa-search-plus" aria-hidden="true" i18n-title title="Add as layer"></i>&nbsp;<span i18n>Zoom in to show layer</span></div>'
})
export class ZoomToShowAlert {
public layer$: layer;
public layer$: Layer<Source>;
@Input()
set layer(layer:layer) {
set layer(layer:Layer<Source>) {
this.layer$ = layer;
}
}