From 5bfccec7a35a4e4e8f3322cf7e37b4978e9a6b01 Mon Sep 17 00:00:00 2001 From: Antoine Vandecreme Date: Sun, 23 Oct 2016 17:45:39 +0200 Subject: [PATCH] Disable tile edge smoothing with tiled image rotation --- src/tiledimage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index 90c9222a..3eb9fafa 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1544,7 +1544,9 @@ function drawTiles( tiledImage, lastDrawn ) { var zoom = tiledImage.viewport.getZoom(true); var imageZoom = tiledImage.viewportToImageZoom(zoom); - if (imageZoom > tiledImage.smoothTileEdgesMinZoom && !tiledImage.iOSDevice) { + // TODO: support tile edge smoothing with tiled image rotation. + if (imageZoom > tiledImage.smoothTileEdgesMinZoom && !tiledImage.iOSDevice && + tiledImage.getRotation() == 0) { // When zoomed in a lot (>100%) the tile edges are visible. // So we have to composite them at ~100% and scale them up together. // Note: Disabled on iOS devices per default as it causes a native crash