forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapBase.js
More file actions
39 lines (30 loc) · 912 Bytes
/
MapBase.js
File metadata and controls
39 lines (30 loc) · 912 Bytes
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
34
35
36
37
38
39
export function createMapClassExtending(SuperClass = class {}) {
return class MapBase extends SuperClass {
constructor() {
super();
this._sourceListModel = null;
this._legendList = [];
}
initializeMap() {
throw new Error('initializeMap is not implemented');
}
clean() {
throw new Error('clean is not implemented');
}
getLayerCatalog() {
return (this._sourceListModel && this._sourceListModel.getSourceList()) || [];
}
getAppreciableLayers() {
return (this._sourceListModel && this._sourceListModel.getLayers()) || [];
}
getLegendInfo() {
return this._legendList;
}
getSelfAppreciableLayers(appreciableLayers) {
return (this._sourceListModel && this._sourceListModel.getSelfLayers(appreciableLayers)) || [];
}
echartsLayerResize() {}
updateOverlayLayer() {}
copyLayer() {}
};
}