Initialize all the items in tileRangeByZ
This commit is contained in:
@@ -48,7 +48,7 @@ ol.tilegrid.XYZ.prototype.createTileCoordTransform = function(opt_options) {
|
|||||||
if (goog.isDef(options.extent)) {
|
if (goog.isDef(options.extent)) {
|
||||||
tileRangeByZ = new Array(maxZ + 1);
|
tileRangeByZ = new Array(maxZ + 1);
|
||||||
var z;
|
var z;
|
||||||
for (z = 0; z < maxZ; ++z) {
|
for (z = 0; z <= maxZ; ++z) {
|
||||||
if (z < minZ) {
|
if (z < minZ) {
|
||||||
tileRangeByZ[z] = null;
|
tileRangeByZ[z] = null;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user