Remove extra tiles.
This commit is contained in:
@@ -146,7 +146,7 @@ ol.source.Zoomify = function(options) {
|
||||
ctx.drawImage(this, 0, 0);
|
||||
|
||||
// Change original image
|
||||
image = new Image() ;
|
||||
image = new Image();
|
||||
image.src = canvas.toDataURL();
|
||||
}
|
||||
}
|
||||
@@ -159,7 +159,7 @@ ol.source.Zoomify = function(options) {
|
||||
resolutions: resolutions
|
||||
});
|
||||
var tileUrlFunction = ol.TileUrlFunction.withTileCoordTransform(
|
||||
tileGrid.createTileCoordTransform(),
|
||||
tileGrid.createTileCoordTransform({extent: [0, 0].concat(this.size_)}),
|
||||
createFromUrl(this.url_));
|
||||
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ ol.tilegrid.Zoomify.prototype.createTileCoordTransform = function(opt_options) {
|
||||
if (!goog.isNull(tileRangeByZ)) {
|
||||
tmpTileCoord.z = z;
|
||||
tmpTileCoord.x = x;
|
||||
tmpTileCoord.y = y;
|
||||
tmpTileCoord.y = -y - 1;
|
||||
if (!tileRangeByZ[z].contains(tmpTileCoord)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user