Aw5739 ngx openlayers -> fm aol

This commit is contained in:
2023-12-28 12:29:57 +01:00
parent 0c10d998a1
commit eb9a8489b8
96 changed files with 8078 additions and 3791 deletions

View File

@@ -0,0 +1,34 @@
import {
Component, OnDestroy, OnInit, Input, Optional, OnChanges,
SimpleChanges
} from '@angular/core';
import { layer, source } from 'openlayers';
import { MapComponent } from '../map.component';
import { LayerComponent } from './layer.component';
import { LayerGroupComponent } from './layergroup.component';
@Component({
selector: 'aol-layer-tile',
template: `<ng-content></ng-content>`
})
export class LayerTileComponent extends LayerComponent implements OnInit, OnDestroy, OnChanges {
public source: source.Tile;
@Input() preload: number;
@Input() useInterimTilesOnError: boolean;
constructor(map: MapComponent,
@Optional() group?: LayerGroupComponent) {
super(group || map);
}
ngOnInit() {
// console.log('creating ol.layer.Tile instance with:', this);
this.instance = new layer.Tile(this);
super.ngOnInit();
}
ngOnChanges(changes: SimpleChanges) {
super.ngOnChanges(changes);
}
}