Files
FarmMapsLib/projects/ng-openlayers/src/lib/layers/layertile.component.ts
Peter Bastiani 9cc581dd3d
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
AW-6526 update angular 21
2026-01-19 12:19:09 +01:00

29 lines
677 B
TypeScript

import { Component, Input, OnInit } from '@angular/core';
import { Tile } from 'ol/layer';
import TileSource from 'ol/source/Tile';
import { LayerComponent } from './layer.component';
import { BackgroundColor } from 'ol/layer/Base';
@Component({
selector: 'aol-layer-tile',
template: ` <ng-content></ng-content> `,
standalone: true,
})
export class LayerTileComponent extends LayerComponent implements OnInit {
@Input()
preload: number;
@Input()
background: BackgroundColor;
@Input()
useInterimTilesOnError: boolean;
@Input()
cacheSize: number;
source: TileSource;
ngOnInit(): void {
this.instance = new Tile(this);
super.ngOnInit();
}
}