[OpenLayers-Trac] [OpenLayers] #2924: Make style.graphicTitle standards-conformant

OpenLayers trac-20090302 at openlayers.org
Thu Nov 11 06:37:38 EST 2010

#2924: Make style.graphicTitle standards-conformant
 Reporter:  potter000     |       Owner:  ahocevar    
     Type:  bug           |      Status:  new         
 Priority:  minor         |   Milestone:  2.11 Release
Component:  Renderer.SVG  |     Version:  2.10        
 Keywords:                |       State:              
 I've recently been using OpenLayers to draw a map with a layer of markers,
 each of them being an external PNG image. I wanted tooltips to be shown on
 markers hover, and the easiest way to achieve that is to set a
 graphicTitle attribute for each marker (feature) style.

 Though that works for FF, that does not work for other browsers (e.g.
 Google Chrome), 'cause the present behaviour is not standard-compliant.
 According to [http://www.w3.org/TR/2000/CR-
 SVG-20001102/struct.html#DescriptionAndTitleElements], "title" is a child
 element, while currently Renderer.SVG sets an attribute.

 I have created a patch to resolve the issue. It leaves current behaviour
 (an attribute) while adding a child <title> element.
 I've checked it with FF 3.6, IE 7, Opera 10.63 and Chrome 8 (all on Linux
 except IE).
 Please consider this patch and let me know if it was useful.

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

More information about the Trac mailing list