Commit Graph

5 Commits

Author SHA1 Message Date
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
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
Éric Lemoine
d2856cd721 remove duplicated setOpacity tests (MapServer/Untiled.html) 2011-12-31 12:25:37 +01:00
fredj
efdd9d0eb2 don't create div for image tile when no gutter is used 2011-11-30 14:19:36 +01:00
Tim Schaub
9605c08a11 Remove extra MapServer subclass. 2011-11-08 22:57:28 -07:00