OpenLayers OpenLayers

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  
    3737        if (!this.supported()) {  
    3838            return;  
    3939        } 
    40         if (!document.namespaces.v) { 
    41             document.namespaces.add("v", this.xmlns); 
     40        if (!document.namespaces.olv) { 
     41            document.namespaces.add("olv", this.xmlns); 
    4242            var style = document.createStyleSheet(); 
    43             style.addRule('v\\:*', "behavior: url(#default#VML); " + 
     43            style.addRule('olv\\:*', "behavior: url(#default#VML); " + 
    4444                                   "position: absolute; display: inline-block;"); 
    4545        } 
    4646        OpenLayers.Renderer.Elements.prototype.initialize.apply(this,  
     
    120120        var nodeType = null; 
    121121        switch (geometry.CLASS_NAME) { 
    122122            case "OpenLayers.Geometry.Point": 
    123                 nodeType = style.externalGraphic ? "v:rect" : "v:oval"; 
     123                nodeType = style.externalGraphic ? "olv:rect" : "olv:oval"; 
    124124                break; 
    125125            case "OpenLayers.Geometry.Rectangle": 
    126                 nodeType = "v:rect"; 
     126                nodeType = "olv:rect"; 
    127127                break; 
    128128            case "OpenLayers.Geometry.LineString": 
    129129            case "OpenLayers.Geometry.LinearRing": 
    130130            case "OpenLayers.Geometry.Polygon": 
    131131            case "OpenLayers.Geometry.Curve": 
    132132            case "OpenLayers.Geometry.Surface": 
    133                 nodeType = "v:shape"; 
     133                nodeType = "olv:shape"; 
    134134                break; 
    135135            default: 
    136136                break; 
     
    195195            } 
    196196        } else { 
    197197            if (!fill) { 
    198                 fill = this.createNode('v:fill', node.id + "_fill"); 
     198                fill = this.createNode('olv:fill', node.id + "_fill"); 
    199199            } 
    200200            fill.setAttribute("opacity", style.fillOpacity); 
    201201 
     
    236236            } 
    237237        } else { 
    238238            if (!stroke) { 
    239                 stroke = this.createNode('v:stroke', node.id + "_stroke"); 
     239                stroke = this.createNode('olv:stroke', node.id + "_stroke"); 
    240240                node.appendChild(stroke); 
    241241            } 
    242242            stroke.setAttribute("opacity", style.strokeOpacity); 
     
    379379     * {DOMElement} The main root element to which we'll add vectors 
    380380     */ 
    381381    createRoot: function() { 
    382         return this.nodeFactory(this.container.id + "_root", "v:group"); 
     382        return this.nodeFactory(this.container.id + "_root", "olv:group"); 
    383383    }, 
    384384 
    385385    /**************************************