AW-6526 update angular 21
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -1,31 +1,28 @@
|
||||
import { Component, OnDestroy, OnInit, Input, Optional, OnChanges, SimpleChanges } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Tile } from 'ol/layer';
|
||||
import { MapComponent } from '../map.component';
|
||||
import TileSource from 'ol/source/Tile';
|
||||
import { LayerComponent } from './layer.component';
|
||||
import { LayerGroupComponent } from './layergroup.component';
|
||||
import { BackgroundColor } from 'ol/layer/Base';
|
||||
|
||||
@Component({
|
||||
selector: 'aol-layer-tile',
|
||||
template: ` <ng-content></ng-content> `,
|
||||
standalone: false
|
||||
selector: 'aol-layer-tile',
|
||||
template: ` <ng-content></ng-content> `,
|
||||
standalone: true,
|
||||
})
|
||||
export class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
|
||||
export class LayerTileComponent extends LayerComponent implements OnInit {
|
||||
@Input()
|
||||
preload: number;
|
||||
@Input()
|
||||
background: BackgroundColor;
|
||||
@Input()
|
||||
useInterimTilesOnError: boolean;
|
||||
@Input()
|
||||
cacheSize: number;
|
||||
|
||||
constructor(map: MapComponent, @Optional() group?: LayerGroupComponent) {
|
||||
super(group || map);
|
||||
}
|
||||
source: TileSource;
|
||||
|
||||
ngOnInit() {
|
||||
// console.log('creating ol.layer.Tile instance with:', this);
|
||||
ngOnInit(): void {
|
||||
this.instance = new Tile(this);
|
||||
super.ngOnInit();
|
||||
}
|
||||
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
super.ngOnChanges(changes);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user