When the resolution does not change, remove backbuffer tile by tile

This change introduces a new 'replace' mode for tile transitions: when the
resolution does not change, which happens when mergeNewParams is called,
the tile will be marked with the .olTileReplace class. If this class sets
the tile's imgDiv display to 'none', the backbuffer for the tile will
immediately be removed when the tile is loaded.
This commit is contained in:
ahocevar
2012-12-28 10:51:23 +01:00
parent 18d548f979
commit c8564838bc
3 changed files with 66 additions and 3 deletions

View File

@@ -487,6 +487,11 @@ a.olControlZoomOut {
transition: opacity 0.2s linear;
}
/* when replacing tiles, do not show tile and backbuffer at the same time */
.olTileImage.olTileReplacing {
display: none;
}
/* override any max-width image settings (e.g. bootstrap.css) */
img.olTileImage {
max-width: none;