Initialize all the items in tileRangeByZ

This commit is contained in:
Frederic Junod
2013-07-16 15:30:21 +02:00
parent 63c4feb6db
commit ad42496948

View File

@@ -48,7 +48,7 @@ ol.tilegrid.XYZ.prototype.createTileCoordTransform = function(opt_options) {
if (goog.isDef(options.extent)) {
tileRangeByZ = new Array(maxZ + 1);
var z;
for (z = 0; z < maxZ; ++z) {
for (z = 0; z <= maxZ; ++z) {
if (z < minZ) {
tileRangeByZ[z] = null;
} else {