Files
FarmMapsLib/projects/common-map/src/fm-map/components/zoom-to-show-alert/zoom-to-show-alert.component.ts
2026-01-20 15:57:18 +01:00

18 lines
570 B
TypeScript

import { Component, Input } from '@angular/core';
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>',
standalone: false
})
export class ZoomToShowAlert {
public layer$: Layer<Source>;
@Input()
set layer(layer:Layer<Source>) {
this.layer$ = layer;
}
}