Edits to tile related improvements.

This commit is contained in:
ahocevar
2012-03-13 12:39:33 +01:00
parent 0a8db1629d
commit f3fa799a27

View File

@@ -5,26 +5,6 @@
A simple control to add zoom in/out buttons on the map that can be entirely styled using CSS.
See it live in this [example](http://openlayers.org/dev/examples/zoom.html).
## Tile animation
The displaying of tiles can now be animated, using CSS3 transitions. Transitions operate on the `opacity` property. Here's the CSS rule defined in OpenLayers' default theme:
.olTileImage {
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
People can override this rule to use other transition settings. To remove tile animation entirely use:
.olTileImage {
-webkit-transition: none;
-moz-transition: none;
-o-transition: all 0 none;
transition: none;
}
## Builds
This version of OpenLayers ships with three builds:
@@ -57,26 +37,53 @@ can now be created with this:
projection: "EPSG:900913"
});
## Tile Offline Storage
With the new `OpenLayers.Control.CacheRead` and `OpenLayers.Control.CacheWrite` controls, applications can cache tiles for offline use or for use with slow connections.
## Tile Animation
The displaying of tiles can now be animated, using CSS3 transitions. Transitions operate on the `opacity` property. Here's the CSS rule defined in OpenLayers' default theme:
.olTileImage {
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
People can override this rule to use other transition settings. To remove tile animation entirely use:
.olTileImage {
-webkit-transition: none;
-moz-transition: none;
-o-transition: all 0 none;
transition: none;
}
## Tile Queue
The tiling code has been overhauled so grid layers now work with tile queues.
The tile queue gives more control on the tile requests sent to the tiling
services. Tile requests that become useless can be aborted.
The tiling code has been overhauled so tile loading in grid layers is now done in a queue.
The tile queue gives more control on the tile requests sent to the server. Pending requests for tiles that are not needed any more (e.g. after zooming or panning) are avoided, which increases performance and reduces server load.
## Tile Canvas
Image tiles expose an `getCanvasContext` function that can be used for various
Image tiles expose a `getCanvasContext` function that can be used for various
things, like changing the image pixels, save the image using the File API, etc.
See the [osm-grayscale
example](http://openlayers.org/dev/examples/osm-grayscale.html).
## Backbuffer Overhaul
## Tile Interaction Event Improvements
The backbuffer code (behind `transitionEffect:resize`) has been redesigned and
The layer's `tileloaded` event now returns a reference to the loaded tile. The new `tileloaderror` event does the same, and is fired when a tile could not be loaded.
## Tile and Backbuffer Overhaul
The whole image tile and backbuffer code (behind `transitionEffect:resize`) has been redesigned and
rewritten. This overhaul yields better performance and code simplifications.
## Continous zooming
## Continous Zooming
Tile layers can now be displayed at resolutions not supported by their tiling
services. This works by requesting tiles at higher resolutions and stretching