[OpenLayers-Trac] [OpenLayers] #2998: delay (time consuming) grid tiles move

OpenLayers trac-20090302 at openlayers.org
Tue Jan 4 06:22:47 EST 2011


#2998: delay (time consuming) grid tiles move
------------------------+---------------------------------------------------
 Reporter:  pgiraud     |       Owner:  elemoine       
     Type:  feature     |      Status:  new            
 Priority:  minor       |   Milestone:  2.11 Release   
Component:  Layer.Grid  |     Version:  2.10           
 Keywords:              |       State:  Needs More Work
------------------------+---------------------------------------------------
 After a bit of profiling, we easily noticed that a large amount of time is
 spent in the Tile.Image::positionImage method. This method is actually
 called each time a tile is moved to be positioned somewhere else in the
 grid, ie. each Layer.Grid::moveGriddedTiles is called.

 Some quick tests showed that delaying the tiles move until the map stops
 moving is really improving the user experience.

 With the attached patch, tests continue to pass on FF3 and Chrome 9. New
 unit tests and a new example may need to be written.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2998>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list