Ticket #2924 (closed bug: fixed)
Make style.graphicTitle standards-conformant
| Reported by: | potter000 | Owned by: | pgiraud |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | Renderer.SVG | Version: | 2.10 |
| Keywords: | Cc: | ||
| State: | Review |
Description
Hello, 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.

