[OpenLayers-Trac] Re: [OpenLayers] #3061: Investigate, and if possible implement more efficient tile positioning

OpenLayers trac-20090302 at openlayers.org
Sun Jul 10 04:58:22 EDT 2011


#3061: Investigate, and if possible implement more efficient tile positioning
-----------------------+----------------------------------------------------
  Reporter:  ahocevar  |       Owner:              
      Type:  task      |      Status:  reopened    
  Priority:  minor     |   Milestone:  2.12 Release
 Component:  Layer     |     Version:  2.10        
Resolution:            |    Keywords:  mobile      
     State:  Review    |  
-----------------------+----------------------------------------------------

Comment(by ahocevar):

 Replying to [comment:11 erilem]:
 > Would you mind elaborating a bit? Why there was a reflow after a tile
 image was loaded? And why there's no reflow anymore?

 This was the code that did the reflow:
 {{{
 -    show: function() {
 -        this.frame.style.display = '';
 -        // Force a reflow on gecko based browsers to actually show the
 element
 -        // before continuing execution.
 -        if (OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,
 -                this.layer.transitionEffect) != -1) {
 -            if (OpenLayers.IS_GECKO === true) {
 -                this.frame.scrollLeft = this.frame.scrollLeft;
 -            }
 }}}
 Previously, visibility of the tile was set on the frame. Now it is set on
 the image. I did not encounter any difference when I added the same reflow
 to the new code, so I removed it.

 > My preliminary tests show that delaying tile loading still improves the
 panning experience.

 This may well be - I had no opportunity to test on a mobile device, and
 the removal of the reflow above only affects layers where no transition
 effect is configured. The one thing that I saw is that kinetic dragging
 experience is really bad with a delay of 100ms, because no tiles will be
 loaded at all during the kinetic drag. So we may have to find a better
 default for this, or set the longer delay only on specific devices.

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


More information about the Trac mailing list