This commit is contained in:
tengge 2020-08-02 16:15:46 +08:00
parent a282a1cfc0
commit ea612b5c27

View File

@ -919,7 +919,8 @@ Tessellator.prototype.isTileVisible = function (dc, tile) {
Tessellator.prototype.tileMeetsRenderCriteria = function (dc, tile) {
var s = this.detailControl;
if (tile.sector.minLatitude >= 75 || tile.sector.maxLatitude <= -75) {
var lat = WWMath.mercatorLat(75);
if (tile.sector.minLatitude >= lat || tile.sector.maxLatitude <= -lat) {
s *= 2;
}
return tile.level.isLastLevel() || !tile.mustSubdivide(dc, s);