Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/Main/src/Layer/Layer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as THREE from 'three';
import { STRATEGY_MIN_NETWORK_TRAFFIC } from 'Layer/LayerUpdateStrategy';
import InfoLayer from 'Layer/InfoLayer';
import Source from 'Source/Source';
import { Source } from 'Source/Source';
import { LRUCache } from 'lru-cache';
import Style from 'Core/Style';

Expand Down Expand Up @@ -149,7 +149,7 @@ class Layer extends THREE.EventDispatcher {
* @type {number}
*/
this.subdivisionThreshold = subdivisionThreshold;
this.sizeDiagonalTexture = (2 * (this.subdivisionThreshold * this.subdivisionThreshold)) ** 0.5;
this.sizeDiagonalTexture = (2 * (this.subdivisionThreshold * this.subdivisionThreshold)) ** 0.5;

this.addLabelLayer = addLabelLayer;

Expand Down Expand Up @@ -189,7 +189,7 @@ class Layer extends THREE.EventDispatcher {
this._reject = rj;
}).then(() => {
this.ready = true;
this.source.onLayerAdded({ out: this });
this.source.capabilities.layerEventHandler?.onLayerAdded(this);
return this;
});

Expand Down
37 changes: 19 additions & 18 deletions packages/Main/src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,25 @@ export { default as GeoidLayer } from 'Layer/GeoidLayer';
// Sources provided by default in iTowns
// A custom source should at least implements Source
// See http://www.itowns-project.org/itowns/docs/#api/Source/Source
export { default as Source } from 'Source/Source';
export { default as FileSource } from 'Source/FileSource';
export { default as TMSSource } from 'Source/TMSSource';
export { default as WFSSource } from 'Source/WFSSource';
export { default as WMSSource } from 'Source/WMSSource';
export { default as WMTSSource } from 'Source/WMTSSource';
export { default as VectorTilesSource } from 'Source/VectorTilesSource';
export { default as OrientedImageSource } from 'Source/OrientedImageSource';
export { default as PotreeSource } from 'Source/PotreeSource';
export { default as Potree2Source } from 'Source/Potree2Source';
export { default as C3DTilesSource } from 'Source/C3DTilesSource';
export { default as C3DTilesIonSource } from 'Source/C3DTilesIonSource';
export { default as C3DTilesGoogleSource } from 'Source/C3DTilesGoogleSource';
export { default as OGC3DTilesSource } from 'Source/OGC3DTilesSource';
export { default as OGC3DTilesIonSource } from 'Source/OGC3DTilesIonSource';
export { default as OGC3DTilesGoogleSource } from 'Source/OGC3DTilesGoogleSource';
export { default as EntwinePointTileSource } from 'Source/EntwinePointTileSource';
export { default as CopcSource } from 'Source/CopcSource';
export { Source } from 'Source/Source';
// export { default as FileSource } from 'Source/FileSource';
export { TmsSource } from 'Source/TmsSource';
export { default as WmtsSource } from 'Source/WmtsSource';
// export { default as WFSSource } from 'Source/WFSSource';
// export { default as WMSSource } from 'Source/WMSSource';
// export { default as WMTSSource } from 'Source/WMTSSource';
// export { default as VectorTilesSource } from 'Source/VectorTilesSource';
// export { default as OrientedImageSource } from 'Source/OrientedImageSource';
// export { default as PotreeSource } from 'Source/PotreeSource';
// export { default as Potree2Source } from 'Source/Potree2Source';
// export { default as C3DTilesSource } from 'Source/C3DTilesSource';
// export { default as C3DTilesIonSource } from 'Source/C3DTilesIonSource';
// export { default as C3DTilesGoogleSource } from 'Source/C3DTilesGoogleSource';
// export { default as OGC3DTilesSource } from 'Source/OGC3DTilesSource';
// export { default as OGC3DTilesIonSource } from 'Source/OGC3DTilesIonSource';
// export { default as OGC3DTilesGoogleSource } from 'Source/OGC3DTilesGoogleSource';
// export { default as EntwinePointTileSource } from 'Source/EntwinePointTileSource';
// export { default as CopcSource } from 'Source/CopcSource';

// Parsers provided by default in iTowns
// Custom parser can be implemented as wanted, as long as the main function
Expand Down
76 changes: 0 additions & 76 deletions packages/Main/src/Source/C3DTilesGoogleSource.js

This file was deleted.

58 changes: 0 additions & 58 deletions packages/Main/src/Source/C3DTilesIonSource.js

This file was deleted.

31 changes: 0 additions & 31 deletions packages/Main/src/Source/C3DTilesSource.js

This file was deleted.

132 changes: 0 additions & 132 deletions packages/Main/src/Source/CopcSource.js

This file was deleted.

Loading