OpenLayers OpenLayers

Ticket #777: getWarningHTML.2.patch

File getWarningHTML.2.patch, 1.1 kB (added by euzuro, 1 year ago)

sorry about the old jsdoc comments. now it's in full ND style

  • lib/OpenLayers/Layer/EventPane.js

    old new  
    110110    /** 
    111111     * Method: loadWarningMessage 
    112112     * If we can't load the map lib, then display an error message to the  
    113      * user and tell them where to go for help. 
     113     *     user and tell them where to go for help. 
     114     *  
     115     *     This function sets up the layout for the warning message. Each 3rd 
     116     *     party layer must implement its own getWarningHTML() function to  
     117     *     provide the actual warning message. 
    114118     */ 
    115119    loadWarningMessage:function() { 
    116120 
     
    141145        this.div.appendChild(div); 
    142146    }, 
    143147   
     148    /**  
     149     * Method: getWarningHTML 
     150     * To be implemented by subclasses. 
     151     *  
     152     * Return: 
     153     * {String} String with information on why layer is broken, how to get 
     154     *          it working. 
     155     */ 
     156    getWarningHTML:function() { 
     157        //should be implemented by subclasses 
     158        return ""; 
     159    }, 
    144160   
    145161    /** 
    146162     * Method: display