[OpenLayers-Trac] [OpenLayers] #2964: Error in Layer.Zoomify when width or height is evenly divisible by 256

OpenLayers trac-20090302 at openlayers.org
Mon Dec 6 21:36:38 EST 2010


#2964: Error in Layer.Zoomify when width or height is evenly divisible by 256
---------------------+------------------------------------------------------
 Reporter:  alpage   |       Owner:  euzuro      
     Type:  bug      |      Status:  new         
 Priority:  major    |   Milestone:  2.11 Release
Component:  Layer    |     Version:  2.10        
 Keywords:  zoomify  |       State:              
---------------------+------------------------------------------------------
 In getImageSize function in OpenLayers.Layer.Zoomify the calculation of
 edge tile size is performed using "var w = this.tierImageSize[z].w %
 this.standardTileSize" and "var h = this.tierImageSize[z].h %
 this.standardTileSize". But if either width or height of a particular
 layer is evenly divisible by this.standardTileSize (default 256) then the
 result is zero. Code should check for zero and replace with
 this.standardTileSize.

 See [http://www.objectivepathology.com/ViewerBug/] for example.

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


More information about the Trac mailing list