[OpenLayers-Trac] Re: [OpenLayers] #3062: make moveTo more efficient

OpenLayers trac-20090302 at openlayers.org
Tue Feb 22 18:25:34 EST 2011


#3062: make moveTo more efficient
----------------------+-----------------------------------------------------
 Reporter:  ahocevar  |       Owner:              
     Type:  task      |      Status:  new         
 Priority:  minor     |   Milestone:  2.11 Release
Component:  Map       |     Version:  2.10        
 Keywords:  mobile    |       State:  Review      
----------------------+-----------------------------------------------------
Changes (by ahocevar):

  * state:  => Review
  * component:  Layer => Map


Comment:

 [attachment:openlayers-3062.2.patch] adds an additional improvement: the
 layerContainerDiv gets the dimension of the map's (baseLayer's) maxExtent
 at the current resoltuion. Also, the layerContainerDiv is now repositioned
 on every move, not just on moveend. This seems more natural, saves us
 additional steps for container repositioning on moveend, and allows
 further optimization if we add pixel-based move methods, so e.g. pan does
 not need to convert pixels to coordinates any more. Finally, the fact that
 the layerContainerDiv now has a dimension, will allow us to position tiles
 and layers based on a percentages (see #3061).

 Replaced a test for layerContainerDiv repositioning (now obsolete) with
 one that checks for correct layerContainerDiv positioning in map.html.

 [https://skitch.com/ahocevar/rterd/web-inspector-http-localhost-ahocevar-
 projects-ol3-examples-fullscreen.html Profiling results] (left: current
 behavior, right: behavior after applying the patch)

 All tests pass in Safari5. Thanks for any review.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3062#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list