[OpenLayers-Trac] [OpenLayers] #1017: Remove clear() from Layer's moveTo()

OpenLayers trac at openlayers.org
Fri Sep 28 13:07:49 EDT 2007


#1017: Remove clear() from Layer's moveTo()
---------------------+------------------------------------------------------
  Reporter:  euzuro  |       Owner:  euzuro     
      Type:  bug     |      Status:  new        
  Priority:  minor   |   Milestone:  2.6 Release
 Component:  Tile    |     Version:  2.5 RC3    
Resolution:          |    Keywords:  commit     
---------------------+------------------------------------------------------
Comment (by euzuro):

 Replying to [comment:2 openlayers]:
 > I added a check for a change of bounds in the moveTo of Tile.js which
 works for me:
 >
 >     moveTo: function (bounds, position, redraw) {
 >         if (redraw == null) {
 >             redraw = true;
 >         }
 >         if (!this.bounds.equals(bounds)) {
 >           this.clear();
 >         }
 >         this.bounds = bounds.clone();
 >         this.position = position.clone();
 >         if (redraw) {
 >             this.draw();
 >         }
 >     },
 >
 > So when zooming, the tile will be cleared, when you are running
 something like a WMS timeseries with a timer, the bounds will not change,
 and the map will not flash.

 Hi Bart, I can't *quite* see what you're trying to get at with this, but I
 think it's a different problem. This ticket is not supposed to solve the
 flash problem, though it is a step in the right direction.

 It looks like we'll be working on this a bit today with Paul, so let's see
 where we can go with it.

 -E

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


More information about the Trac mailing list