[OpenLayers-Commits] r11569 -
trunk/openlayers/lib/OpenLayers/Renderer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Sun Feb 27 19:46:56 EST 2011
Author: crschmidt
Date: 2011-02-27 16:46:52 -0800 (Sun, 27 Feb 2011)
New Revision: 11569
Modified:
trunk/openlayers/lib/OpenLayers/Renderer/SVG.js
Log:
Make SVG graphicTitle standards compliant. p=potter000, r=pgiraud (Closes #2924)
Modified: trunk/openlayers/lib/OpenLayers/Renderer/SVG.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Renderer/SVG.js 2011-02-27 23:22:57 UTC (rev 11568)
+++ trunk/openlayers/lib/OpenLayers/Renderer/SVG.js 2011-02-28 00:46:52 UTC (rev 11569)
@@ -260,6 +260,10 @@
if (style.graphicTitle) {
node.setAttributeNS(null, "title", style.graphicTitle);
+ //Standards-conformant SVG
+ var label = this.nodeFactory(null, "title");
+ label.textContent = style.graphicTitle;
+ node.appendChild(label);
}
if (style.graphicWidth && style.graphicHeight) {
node.setAttributeNS(null, "preserveAspectRatio", "none");
More information about the Commits
mailing list