Files
FarmMapsLib/projects/ng-openlayers/src/lib/formats/mvt.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

30 lines
746 B
TypeScript

import { Component, forwardRef, Input } from '@angular/core';
import { MVT } from 'ol/format';
import { FormatComponent } from './format.component';
import RenderFeature from 'ol/render/Feature';
import { FeatureToFeatureClass } from 'ol/format/Feature';
@Component({
selector: 'aol-format-mvt',
template: '',
providers: [{ provide: FormatComponent, useExisting: forwardRef(() => FormatMVTComponent) }],
standalone: true,
})
export class FormatMVTComponent extends FormatComponent {
@Input()
featureClass: FeatureToFeatureClass<RenderFeature>;
@Input()
geometryName: string;
@Input()
layerName: string;
@Input()
layers: string[];
instance: MVT;
constructor() {
super();
this.instance = new MVT(this);
}
}