You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
723 B
JavaScript

import { Event } from "../Source/Cesium.js";
import { EntityCluster } from "../Source/Cesium.js";
import { EntityCollection } from "../Source/Cesium.js";
function MockDataSource() {
//Values to be fiddled with by the test
this.changedEvent = new Event();
this.errorEvent = new Event();
this.entities = new EntityCollection();
this.name = "Mock Data";
this.clock = undefined;
this.isTimeVarying = false;
this.isLoading = false;
this.loadingEvent = new Event();
this.destroyed = false;
this.clustering = new EntityCluster();
}
MockDataSource.prototype.update = function () {
return true;
};
MockDataSource.prototype.destroy = function () {
this.destroyed = true;
};
export default MockDataSource;