[OpenLayers-Trac] [OpenLayers] #3230: Order of loading layers

OpenLayers trac-20090302 at openlayers.org
Thu Mar 31 09:25:24 EDT 2011


#3230: Order of loading layers
-------------------------+--------------------------------------------------
 Reporter:  mosesonline  |       Owner:              
     Type:  feature      |      Status:  new         
 Priority:  trivial      |   Milestone:  2.11 Release
Component:  Map          |     Version:  SVN         
 Keywords:  Layers       |       State:  Review      
-------------------------+--------------------------------------------------
 '''Problem:''' The layers are loaded bottom up in OL.
 Three '''reasons''' why this is not optimal:
 1. You have one functional unneeded variable "len" in the for-loop.
 2. It looks often better if the top layers are faster ready because they
 are in the most cases(my opinion) the visible ones.
 3. The performance for the user. When the first layer is/are ready the
 user can drag/zoom faster because he things the app is ready. For OL it's
 not a problem because unnecessary requests are aborted for server side
 maybe but the user would drag/zoom anyway.
 The last reason doesn't fit really now, because requesting new tiles is
 preventing a smooth dragging/zooming.
 We didn't have any issues with it.
 '''Solution:''' See patch.

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


More information about the Trac mailing list