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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user