Ticket #1477: 1477-r6762-A0.patch
| File 1477-r6762-A0.patch, 2.6 kB (added by ahocevar, 8 months ago) |
|---|
-
lib/OpenLayers/Renderer/VML.js
old new 37 37 if (!this.supported()) { 38 38 return; 39 39 } 40 if (!document.namespaces. v) {41 document.namespaces.add(" v", this.xmlns);40 if (!document.namespaces.olv) { 41 document.namespaces.add("olv", this.xmlns); 42 42 var style = document.createStyleSheet(); 43 style.addRule(' v\\:*', "behavior: url(#default#VML); " +43 style.addRule('olv\\:*', "behavior: url(#default#VML); " + 44 44 "position: absolute; display: inline-block;"); 45 45 } 46 46 OpenLayers.Renderer.Elements.prototype.initialize.apply(this, … … 120 120 var nodeType = null; 121 121 switch (geometry.CLASS_NAME) { 122 122 case "OpenLayers.Geometry.Point": 123 nodeType = style.externalGraphic ? " v:rect" : "v:oval";123 nodeType = style.externalGraphic ? "olv:rect" : "olv:oval"; 124 124 break; 125 125 case "OpenLayers.Geometry.Rectangle": 126 nodeType = " v:rect";126 nodeType = "olv:rect"; 127 127 break; 128 128 case "OpenLayers.Geometry.LineString": 129 129 case "OpenLayers.Geometry.LinearRing": 130 130 case "OpenLayers.Geometry.Polygon": 131 131 case "OpenLayers.Geometry.Curve": 132 132 case "OpenLayers.Geometry.Surface": 133 nodeType = " v:shape";133 nodeType = "olv:shape"; 134 134 break; 135 135 default: 136 136 break; … … 195 195 } 196 196 } else { 197 197 if (!fill) { 198 fill = this.createNode(' v:fill', node.id + "_fill");198 fill = this.createNode('olv:fill', node.id + "_fill"); 199 199 } 200 200 fill.setAttribute("opacity", style.fillOpacity); 201 201 … … 236 236 } 237 237 } else { 238 238 if (!stroke) { 239 stroke = this.createNode(' v:stroke', node.id + "_stroke");239 stroke = this.createNode('olv:stroke', node.id + "_stroke"); 240 240 node.appendChild(stroke); 241 241 } 242 242 stroke.setAttribute("opacity", style.strokeOpacity); … … 379 379 * {DOMElement} The main root element to which we'll add vectors 380 380 */ 381 381 createRoot: function() { 382 return this.nodeFactory(this.container.id + "_root", " v:group");382 return this.nodeFactory(this.container.id + "_root", "olv:group"); 383 383 }, 384 384 385 385 /**************************************
