itowns 2.43.2-next.0 → 2.43.2-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/examples/config.json +2 -1
- package/examples/copc_simple_loader.html +128 -0
- package/lib/Core/CopcNode.js +174 -0
- package/lib/Layer/CopcLayer.js +59 -0
- package/lib/Main.js +2 -0
- package/lib/Parser/LASLoader.js +45 -1
- package/lib/Parser/LASParser.js +55 -22
- package/lib/Source/CopcSource.js +118 -0
- package/lib/Source/Source.js +3 -1
- package/package.json +1 -1
package/lib/Source/Source.js
CHANGED
|
@@ -56,6 +56,8 @@ let uid = 0;
|
|
|
56
56
|
* To extend a Source, it is necessary to implement two functions:
|
|
57
57
|
* `urlFromExtent` and `extentInsideLimit`.
|
|
58
58
|
*
|
|
59
|
+
* @extends InformationsData
|
|
60
|
+
*
|
|
59
61
|
* @property {boolean} isSource - Used to checkout whether this source is a
|
|
60
62
|
* Source. Default is true. You should not change this, as it is used internally
|
|
61
63
|
* for optimisation.
|
|
@@ -97,7 +99,6 @@ class Source extends InformationsData {
|
|
|
97
99
|
* Source. Only the `url` property is mandatory.
|
|
98
100
|
*
|
|
99
101
|
* @constructor
|
|
100
|
-
* @extends InformationsData
|
|
101
102
|
*/
|
|
102
103
|
constructor(source) {
|
|
103
104
|
super(source);
|
|
@@ -118,6 +119,7 @@ class Source extends InformationsData {
|
|
|
118
119
|
crossOrigin: 'anonymous'
|
|
119
120
|
};
|
|
120
121
|
this.attribution = source.attribution;
|
|
122
|
+
/** @type {Promise<any>} */
|
|
121
123
|
this.whenReady = Promise.resolve();
|
|
122
124
|
this._featuresCaches = {};
|
|
123
125
|
if (source.extent && !source.extent.isExtent) {
|