Bring back throttling for tile loading
In OpenLayers 2.12, only one tile was loaded per animation frame. This change brings back something similar as part of the tile manager. But we do not use requestAnimationFrame anymore, because @elemoine pointed out that browsers may give requestAnimationFrame invoked functions a higher priority than setTimeout invoked functions. The reason for this change is http://lists.osgeo.org/pipermail/openlayers-users/2013-April/028063.html.
This commit is contained in:
@@ -6,6 +6,7 @@ var urls = [
|
||||
|
||||
var map = new OpenLayers.Map({
|
||||
div: "map",
|
||||
tileManager: new OpenLayers.TileManager(),
|
||||
layers: [
|
||||
new OpenLayers.Layer.XYZ("OSM (with buffer)", urls, {
|
||||
transitionEffect: "resize", buffer: 2, sphericalMercator: true,
|
||||
|
||||
Reference in New Issue
Block a user