ahocevar
da3dc76a6d
Making the delay for removing the backbuffer configurable.
...
This helps users who want to avoid having old and new tiles on the screen for transparent single tile layers.
r=@elemoine (closes #216 )
2012-02-14 20:12:09 +01:00
ahocevar
5e734f20dc
Merge pull request #179 from ahocevar/tile-queue
...
A tile queue that can be aborted. r=@elemoine,@fredj,@tonio
2012-02-14 10:59:12 -08:00
fredj
8558b6ee5c
Update OpenLayers.Layer.Grid.calculateGridLayout inputs type.
...
No need to clone the passed bounds (read only access).
'bounds' can be either a Bounds instance or a simple javascript
object. Same for 'origin': LonLat instance or a simple javascript
object.
2012-02-02 16:35:30 +01:00
ahocevar
99a68b0d20
Clear queue in more appropriate places.
2012-01-31 12:04:03 +01:00
ahocevar
cc749a7967
Don't queue tiles multiple times.
...
This results in a smaller queue that we don't have to unqueue from.
2012-01-31 11:55:19 +01:00
ahocevar
720c49c040
Re-introducing tileLoadingDelay.
...
Only use it if no native requestAnimationFrame function is available. This should improve performance on mobile devices.
2012-01-29 18:50:03 +01:00
ahocevar
8efce71271
Fixing a fatal typo.
2012-01-28 23:35:56 +01:00
ahocevar
dde45696f7
Simplified tile queue; using the tile's beforedraw listener.
...
Since draw is the only tile operation that we defer, the tile queue can be an array of tiles and queue handling can be simplified. We now use the beforedraw event to defer drawing, and remove all occurrences of a tile from the tile queue when we draw it.
Instead of layers that want to defer tile drawing having to override the tile's draw method, layers can now abort drawing by returning false from a beforedraw listener, and later call draw(true) to draw the tile directly, without clearing it first.
2012-01-28 16:12:29 +01:00
fredj
0e435b5483
Simplify moveGriddedTiles code.
...
Saves 3 unnecessary instances creation and 6 parseFloat calls.
2012-01-28 15:30:39 +01:00
ahocevar
ef85f43d21
A tile queue that can be aborted.
...
This saves server requests, and because we use OpenLayers.Animation, setting img.src on a tile should not freeze iOS any more, so we can hopefully get rid of scheduleMoveGriddedTiles.
2012-01-28 15:30:20 +01:00
fredj
a34dd40869
Fix APIdoc syntax
2012-01-18 14:25:42 +01:00
Frédéric Junod
1cbd88d230
Merge pull request #137 from fredj/simple-objects
...
Replace Size and Pixel instances with simple objects. r=elemoine,probins,tschaub
2012-01-18 04:12:02 -08:00
Éric Lemoine
99ca32540d
Merge branch 'master' into tile-fade-in
...
Conflicts:
tests/Tile/Image.html
2012-01-17 09:27:55 +01:00
fredj
90452311f3
Remove tileSize.clone; not necessary to create a new size instance
2012-01-14 14:11:25 +01:00
fredj
1df5cfa158
replace LonLat argument with simple object (Map.getLayerPxFromLonLat)
2012-01-14 14:11:24 +01:00
Xavier Mamano
5cbdd27706
Docs: Set many links as {<...>}
2012-01-12 20:03:40 +01:00
Éric Lemoine
30c5b11d99
Merge branch 'master' into tile-fade-in
...
Conflicts:
examples/fullScreen.js
2012-01-05 09:39:39 +01:00
fredj
3245836b6d
New OpenLayers.Layer.Grid.tileClass option. Defaults to OpenLayers.Tile.Image
2012-01-04 12:37:39 +01:00
Éric Lemoine
39f2ddccee
remove back buffer immediately in applyBackBuffer if back buffer is schedule for removal
2012-01-04 08:20:11 +01:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
tschaub
f2168d13b7
Increase timeout to avoid flashes.
...
Without this change, flashes are fairly frequent while zooming around a full screen map.
2012-01-02 16:07:40 -07:00
Éric Lemoine
eb924c8f77
no longer rely on the transitionend event, unwanted flashes are avoid using a timer
2012-01-02 22:53:53 +01:00
fredj
64b21b4e86
Remove unused variable
2011-12-12 10:42:33 +01:00
ahocevar
fa1845693b
Fixing a typo.
2011-12-07 16:38:07 +01:00
ahocevar
b6df3d871b
It turns out we really want to retile sometimes.
...
The reason is that we want to avoid moveGriddedTiles to run through hundreds of cycles to shift tiles until we reach the new bounds. But containsBounds does not work if extents that cross the date line start on different worlds, so we use intersectsBounds where we can pass the world bounds to handle this case.
2011-12-07 15:55:22 +01:00
ahocevar
08af94cf84
We never need to retile when the zoom didn't change.
2011-12-03 00:13:44 +01:00
ahocevar
84b30d3699
Don't rely on the bounds of the top-right tile.
...
When the grid crosses the dateline, the top-right tile is in a different world than the bottom-left one. Instead, use the grid size and tile width/height to calculate the top-right coordinate.
2011-12-03 00:05:26 +01:00
ahocevar
c15631ae3e
Remove code that never gets called.
...
OpenLayers.Map has no wrapDateLine property.
2011-12-02 23:57:39 +01:00
fredj
6f78dc4c8f
Remove call to deprecated events.addEventType function
2011-11-30 09:29:24 +01:00
fredj
6836f4dcdf
Remove unneeded requires
2011-11-15 10:11:36 +01:00
fredj
1ed137bd0a
move Layer.Grid.getGridBounds function into deprecated.js
2011-11-15 09:06:44 +01:00
Éric Lemoine
db08102fe4
correct bug where the value stored for the top-left corner of the back buffer may be incorrect, thanks @ahocevar for catching the issue
2011-10-30 23:20:42 +01:00
Éric Lemoine
c0d210ef05
just skip tiles that are currently loading when creating the back buffer
2011-10-29 21:11:14 +02:00
Éric Lemoine
8df1ae0e09
comparing backBufferData.resolution and serverResolution to know if backbuffering should be applied is wrong
2011-10-29 21:10:23 +02:00
Éric Lemoine
c80746b890
Tile.Image.cloneMarkup renamed Tile.Image.createBackBuffer
2011-10-29 12:22:08 +02:00
Éric Lemoine
f3e0ac9425
remove double variable declarations, and make jslint happier
2011-10-28 23:00:13 +02:00
Éric Lemoine
2f80d52bfd
in single tile mode with no transition effect remove the back buffer when zooming
2011-10-28 22:57:10 +02:00
Éric Lemoine
46de595f55
Merge branch 'master' into bigbackbuffer
2011-10-28 21:26:59 +02:00
Éric Lemoine
7ad7e4d57c
better comments for Layer.Grid.getServerResolution, no functional change
2011-10-21 09:35:30 +02:00
Éric Lemoine
abcc74cbc7
give a class to the back buffer
2011-10-21 00:13:16 +02:00
Éric Lemoine
667d21137f
purely cosmetic change
2011-10-20 23:05:34 +02:00
Éric Lemoine
76e8a800da
special precautions must be taken in updateBackBufferData
2011-10-19 23:47:25 +02:00
Éric Lemoine
f9ae12f227
minor refactoring in Layer.Grid - add a removeBackBuffer function
2011-10-19 20:42:34 +02:00
Éric Lemoine
475f96db96
back buffer is not correctly repositioned
2011-10-18 08:11:43 +02:00
Éric Lemoine
5ae65d413a
the layer may not be in the map anymore when a tile is received
2011-10-16 22:40:11 +02:00
Éric Lemoine
bea037679f
better back buffer code, and support for singleTile
2011-10-16 22:31:37 +02:00
Éric Lemoine
69d3c76254
a "big back buffer" attempt
2011-10-15 23:48:13 +02:00
ahocevar
8c43c4537c
Merge branch 'master' into 3526
2011-10-09 09:54:45 +02:00
Éric Lemoine
fed387804e
base-10 parseInt
2011-10-07 13:43:55 +02:00
Éric Lemoine
85d3e8d5e9
Merge branch 'master' into clientzoom
2011-10-07 13:36:58 +02:00