Release notes and additional in-line comment
As suggested by @bartvde.
This commit is contained in:
@@ -342,6 +342,8 @@ OpenLayers.TileManager = OpenLayers.Class({
|
||||
img.style.visibility = 'hidden';
|
||||
}
|
||||
tile.setImage(img);
|
||||
// LRU - move tile to the end of the array to mark it as the most
|
||||
// recently used
|
||||
OpenLayers.Util.removeItem(this.tileCacheIndex, tile.url);
|
||||
this.tileCacheIndex.push(tile.url);
|
||||
}
|
||||
|
||||
@@ -37,6 +37,20 @@ Corresponding issues/pull requests:
|
||||
|
||||
# Behavior Changes from Past Releases
|
||||
|
||||
## Layer.Grid: Tile queue and tileLoadingDelay changes
|
||||
|
||||
With the introduction of OpenLayers.TileManager, tile queueing has become optional. The default behavior is back to how it was in OpenLayers 2.11. To use a tile queue in 2.13, the map needs to be configured with a tileManager, e.g.:
|
||||
|
||||
var map = new OpenLayers.Map('map', {
|
||||
tileManager: new OpenLayers.TileManager()
|
||||
});
|
||||
|
||||
The tile queue also works differently than before: it no longer loads one tile at a time. Instead, it waits after a zoom or pan, and loads all tiles after a delay. This has the same effect as previously (less burden on the server), but makes use of the browser's request management. The delay can be configured separately for zooming and moving the map, using the `zoomDelay` (default: 200 ms) and `moveDelay` (default: 100 ms) config options of the TileManager.
|
||||
|
||||
The `moveDelay` is the replacement for the `tileLoadingDelay` layer config option, which has been removed. There is no magic any more to only use the delay when requestAnimationFrame is not natively available.
|
||||
|
||||
In general, when targeting mobile devices or when using slow servers or connections for tiled layers, it is recommended to configure the map with a TileManager.
|
||||
|
||||
## window.$ is no longer an alias for OpenLayers.Util.getElement
|
||||
|
||||
We do no longer create a global variable '$' when such a symbol isn't already
|
||||
|
||||
Reference in New Issue
Block a user