2021-09-21 02:10:42 +02:00
|
|
|
import {UIEventSource} from "../../UIEventSource";
|
|
|
|
import FilteredLayer from "../../../Models/FilteredLayer";
|
|
|
|
import {FeatureSourceForLayer} from "../FeatureSource";
|
2021-09-20 17:14:55 +02:00
|
|
|
|
|
|
|
export default class SimpleFeatureSource implements FeatureSourceForLayer {
|
|
|
|
public readonly features: UIEventSource<{ feature: any; freshness: Date }[]> = new UIEventSource<{ feature: any; freshness: Date }[]>([]);
|
|
|
|
public readonly name: string = "SimpleFeatureSource";
|
|
|
|
public readonly layer: FilteredLayer;
|
|
|
|
|
|
|
|
constructor(layer: FilteredLayer) {
|
|
|
|
this.name = "SimpleFeatureSource("+layer.layerDef.id+")"
|
|
|
|
this.layer = layer
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|