@openglobus/og 0.14.1 → 0.14.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openglobus/og",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "[OpenGlobus](https://www.openglobus.org/) is a javascript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers and 3d objects. It uses the WebGL technology, open source and completely free.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"example": "./sandbox"
|
package/src/og/scene/Planet.js
CHANGED
|
@@ -998,20 +998,14 @@ export class Planet extends RenderNode {
|
|
|
998
998
|
this.minCurrZoom = math.MAX;
|
|
999
999
|
this.maxCurrZoom = math.MIN;
|
|
1000
1000
|
|
|
1001
|
+
this.quadTreeStrategy.collectRenderNodes();
|
|
1002
|
+
|
|
1001
1003
|
if (cam.slope > this.minEqualZoomCameraSlope && cam._lonLat.height < this.maxEqualZoomAltitude && cam._lonLat.height > this.minEqualZoomAltitude) {
|
|
1002
1004
|
|
|
1003
1005
|
this.minCurrZoom = this.maxCurrZoom;
|
|
1004
1006
|
|
|
1005
1007
|
let temp = this._renderedNodes, rf = this._renderedNodesInFrustum, temp2 = [];
|
|
1006
1008
|
|
|
1007
|
-
this._renderedNodes = [];
|
|
1008
|
-
|
|
1009
|
-
// clearing nodes in frustums
|
|
1010
|
-
for (let i = 0, len = this._renderedNodesInFrustum.length; i < len; i++) {
|
|
1011
|
-
this._renderedNodesInFrustum[i].length = 0;
|
|
1012
|
-
this._renderedNodesInFrustum[i] = [];
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
1009
|
for (var i = 0, len = temp.length; i < len; i++) {
|
|
1016
1010
|
var ri = temp[i];
|
|
1017
1011
|
let ht = ri.segment.centerNormal.dot(cam._b);
|
|
@@ -1035,7 +1029,6 @@ export class Planet extends RenderNode {
|
|
|
1035
1029
|
}
|
|
1036
1030
|
}
|
|
1037
1031
|
|
|
1038
|
-
this.quadTreeStrategy.collectRenderNodes();
|
|
1039
1032
|
}
|
|
1040
1033
|
|
|
1041
1034
|
_globalPreDraw() {
|