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