forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMockDataSource.js
33 lines (30 loc) · 878 Bytes
/
MockDataSource.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
define([
'Core/Event',
'DataSources/EntityCluster',
'DataSources/EntityCollection'
], function(
Event,
EntityCluster,
EntityCollection) {
'use strict';
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;
};
return MockDataSource;
});