OpenLayers OpenLayers

Ticket #559: classnames.patch

File classnames.patch, 1.9 kB (added by tschaub, 2 years ago)

gives the format classes each a CLASS_NAME property

  • lib/OpenLayers/Format.js

    old new  
    2929     */ 
    3030     write: function(features) { 
    3131         alert("Write not implemented."); 
    32      } 
     32     }, 
     33 
     34    /** @final @type String */ 
     35    CLASS_NAME: "OpenLayers.Format" 
     36 
    3337};      
  • lib/OpenLayers/Format/GeoRSS.js

    old new  
    103103           path += geometry.lat + " " + geometry.lon + " "; 
    104104        } 
    105105        return document.createTextNode(path); 
    106     }     
     106    }, 
     107 
     108    /** @final @type String */ 
     109    CLASS_NAME: "OpenLayers.Format.GeoRSS"  
     110 
    107111});      
  • lib/OpenLayers/Format/GML.js

    old new  
    429429        coordinatesNode.appendChild(txtNode); 
    430430         
    431431        return coordinatesNode; 
    432     } 
     432    }, 
     433     
     434    /** @final @type String */ 
     435    CLASS_NAME: "OpenLayers.Format.GML"  
     436 
    433437});      
  • lib/OpenLayers/Format/KML.js

    old new  
    164164        return p; 
    165165    }, 
    166166 
     167    /** @final @type String */ 
    167168    CLASS_NAME: "OpenLayers.Format.KML"  
    168169     
    169170});      
  • lib/OpenLayers/Format/WFS.js

    old new  
    152152 
    153153    destroy: function() { 
    154154        this.layer = null; 
    155     } 
     155    }, 
     156 
     157    /** @final @type String */ 
     158    CLASS_NAME: "OpenLayers.Format.WFS"  
     159 
    156160});