Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 9, 2024
1 parent d80e782 commit bbc51d9
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 56 deletions.
2 changes: 1 addition & 1 deletion docs/BaseGeoImage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/CanvasTiles.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GeoImage.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/GeoVideo.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/KML.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Layer.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Vector.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/WMS.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/XYZ.html

Large diffs are not rendered by default.

12 changes: 1 addition & 11 deletions docs/layer_CanvasTiles.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,6 @@
* @public
*/
public override abortLoading() {
//const q = this._pendingsQueue;
// for (let i = q._shiftIndex + 1; i < q._popIndex + 1; i++) {
// if (q._array[i]) {
// this.abortMaterialLoading(q._array[i]);
// }
// }
// this._pendingsQueue.clear();
// for (let i = 0; i < q.length; i++) {
// this.abortMaterialLoading(q[i]);
// }
this._pendingsQueue.forEach((qi: Material) => {
this.abortMaterialLoading(qi);
})
Expand Down Expand Up @@ -182,7 +172,7 @@
let seg = material.segment;

if (this._isBaseLayer) {
material.texture = seg._isNorth ? seg.planet.solidTextureOne : seg.planet.solidTextureTwo;
material.texture = seg.getDefaultTexture();
} else {
material.texture = seg.planet.transparentTexture;
}
Expand Down
27 changes: 1 addition & 26 deletions docs/layer_Layer.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,6 @@
for (let i = 0, len = p.quadTreeStrategy.quadTreeList.length; i < len; i++) {
this._preLoadRecursive(p.quadTreeStrategy.quadTreeList[i], maxZoom);
}

}
}

Expand Down Expand Up @@ -878,31 +877,7 @@
}

public redraw() {
if (this._planet) {

this._planet.quadTreeStrategy.clearLayerMaterial(this);

// this._planet._quadTree.traverseTree((n: Node) => {
// if (n.segment.materials[this.__id]) {
// n.segment.materials[this.__id].clear();
// }
// }
// );
//
// this._planet._quadTreeNorth.traverseTree((n: Node) => {
// if (n.segment.materials[this.__id]) {
// n.segment.materials[this.__id].clear();
// }
// }
// );
//
// this._planet._quadTreeSouth.traverseTree((n: Node) => {
// if (n.segment.materials[this.__id]) {
// n.segment.materials[this.__id].clear();
// }
// }
// );
}
this._planet?.quadTreeStrategy.clearLayerMaterial(this);
}

public abortMaterialLoading(material: Material) {
Expand Down
16 changes: 8 additions & 8 deletions docs/layer_XYZ.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@
}
}
}
//,this.__id
);
} else {
material.textureNotExists();
Expand Down Expand Up @@ -373,13 +372,14 @@
em.southWest.lon = -ENLARGE_MERCATOR_LON;
}

if (e.northEast.lat >= mercator.MAX_LAT) {
e.northEast.lat = mercator.MAX_LAT;
}

if (e.northEast.lat <= mercator.MIN_LAT) {
e.northEast.lat = mercator.MIN_LAT;
}
// WHY!???
// if (e.northEast.lat >= mercator.MAX_LAT) {
// e.northEast.lat = mercator.MAX_LAT;
// }
//
// if (e.northEast.lat <= mercator.MIN_LAT) {
// e.northEast.lat = mercator.MIN_LAT;
// }
}
}

Expand Down

0 comments on commit bbc51d9

Please sign in to comment.