[OpenLayers-Trac] [OpenLayers] #2897: don't create div for image tile when no gutter is used

OpenLayers trac-20090302 at openlayers.org
Wed Oct 20 08:23:14 EDT 2010


#2897: don't create div for image tile when no gutter is used
---------------------+------------------------------------------------------
 Reporter:  pgiraud  |       Owner:              
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------
 Since the r2979 (#529), we are using a frame mechanism in !Tile.Image to
 support gutter on tiles. This means that each <img> is encapsulated in a
 <div>. Even if no gutter is configured.
 As far as I know, it's usually a good idea to limit the number of DOM
 elements as much as possible.
 The attached patch prevents the Tile.Image from creating a DIV element
 when no gutter is to be applied (layer.gutter == 0).

 Still need more work.
 Feedback appreciated.

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


More information about the Trac mailing list