OpenLayers OpenLayers

Changeset 3209

Show
Ignore:
Timestamp:
05/30/07 13:01:31 (2 years ago)
Author:
tschaub
Message:

replace OpenLayers.console with OpenLayers.Console

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/tschaub/debug/examples/debug.html

    r3058 r3209  
    88        <!-- 
    99        function consoleLog() { 
    10             OpenLayers.console.log("This is the result of an OpenLayers.console.log() call"); 
     10            OpenLayers.Console.log("This is the result of an OpenLayers.Console.log() call"); 
    1111        } 
    1212        function consoleWarn() { 
    13             OpenLayers.console.warn("This is the result of an OpenLayers.console.warn() call"); 
     13            OpenLayers.Console.warn("This is the result of an OpenLayers.Console.warn() call"); 
    1414        } 
    1515        function consoleError() { 
    16             OpenLayers.console.error("This is the result of an OpenLayers.console.error() call"); 
     16            OpenLayers.Console.error("This is the result of an OpenLayers.Console.error() call"); 
    1717        } 
    1818        function consoleDir() { 
    19             OpenLayers.console.dir(OpenLayers); 
     19            OpenLayers.Console.dir(OpenLayers); 
    2020        } 
    2121        function consoleDirxml() { 
    22             OpenLayers.console.dirxml(document.getElementsByTagName('body')[0]); 
     22            OpenLayers.Console.dirxml(document.getElementsByTagName('body')[0]); 
    2323        } 
    2424        // --> 
     
    3333    </pre> 
    3434    The path to DebugOpenLayers.js must be relative to your 
    35     html file.  With this script included calls to OpenLayers.console 
     35    html file.  With this script included calls to OpenLayers.Console 
    3636    will be displayed in the Firebug console.  For browsers without 
    3737    the Firebug extension, the script creates a Firebug Lite console. 
     
    4343    <ul> 
    4444        <li> 
    45             <a href="javascript: void(consoleLog());">OpenLayers.console.log()</a> 
     45            <a href="javascript: void(consoleLog());">OpenLayers.Console.log()</a> 
    4646        </li> 
    4747        <li> 
    48             <a href="javascript: void(consoleWarn());">OpenLayers.console.warn()</a> 
     48            <a href="javascript: void(consoleWarn());">OpenLayers.Console.warn()</a> 
    4949        </li> 
    5050        <li> 
    51             <a href="javascript: void(consoleError());">OpenLayers.console.error()</a> 
     51            <a href="javascript: void(consoleError());">OpenLayers.Console.error()</a> 
    5252        </li> 
    5353        <li> 
    54             <a href="javascript: void(consoleDir());">OpenLayers.console.dir()</a> 
     54            <a href="javascript: void(consoleDir());">OpenLayers.Console.dir()</a> 
    5555        </li> 
    5656        <li> 
    57             <a href="javascript: void(consoleDirxml());">OpenLayers.console.dirxml()</a> 
     57            <a href="javascript: void(consoleDirxml());">OpenLayers.Console.dirxml()</a> 
    5858        </li> 
    5959    </ul> 
  • sandbox/tschaub/debug/lib/Firebug/DebugOpenLayers.js

    r3058 r3209  
    33 * script tag to get Firebug debugging in any browser.  With this script 
    44 * included, if a browser has the Firebug extension installed, calls to 
    5  * OpenLayers.console will get rerouted to console.  If a browser does not 
     5 * OpenLayers.Console will get rerouted to console.  If a browser does not 
    66 * have the Firebug extension installed, this script mimics the behavior 
    77 * of that extension.  With this script included, the Firebug console can 
     
    1111 * http://www.getfirebug.com/lite.html 
    1212 * Modifications include putting the console object in the OpenLayers 
    13  * namespace, modifying getFirebugURL, and re-routing OpenLayers.console calls 
     13 * namespace, modifying getFirebugURL, and re-routing OpenLayers.Console calls 
    1414 * to console if the Firebug extension is installed. 
    1515 */ 
     
    1818if (("console" in window) && ("firebug" in console)) { 
    1919    /** 
    20      * If the Firebug extension is installed, re-route all OpenLayers.console 
     20     * If the Firebug extension is installed, re-route all OpenLayers.Console 
    2121     * calls to the console object. 
    2222     */ 
    23     OpenLayers.Util.extend(OpenLayers.console, console); 
     23    OpenLayers.Util.extend(OpenLayers.Console, console); 
    2424} else { 
    2525    /** 
     
    2929    (function() 
    3030    { 
    31         OpenLayers.console =  
     31        OpenLayers.Console =  
    3232        { 
    3333            log: function() 
     
    282282            } 
    283283     
    284             OpenLayers.console.log(value); 
     284            OpenLayers.Console.log(value); 
    285285        } 
    286286         
  • sandbox/tschaub/debug/lib/Firebug/firebug.html

    r3058 r3209  
    1111<body> 
    1212    <div id="toolbar" class="toolbar"> 
    13         <a href="#" onclick="parent.OpenLayers.console.clear()">Clear</a> 
     13        <a href="#" onclick="parent.OpenLayers.Console.clear()">Clear</a> 
    1414        <span class="toolbarRight"> 
    15             <a href="#" onclick="parent.OpenLayers.console.close()">Close</a> 
     15            <a href="#" onclick="parent.OpenLayers.Console.close()">Close</a> 
    1616        </span> 
    1717    </div> 
  • sandbox/tschaub/debug/lib/OpenLayers/BaseTypes.js

    r3152 r3209  
    951951 */ 
    952952 
    953 OpenLayers.console = {}; 
     953OpenLayers.Console = {}; 
    954954(function() { 
    955955    var methods = ['log', 'debug', 'info', 'warn', 'error', 'assert', 
     
    957957                   'timeEnd', 'profile', 'profileEnd', 'count']; 
    958958    for(var i=0; i<methods.length; ++i) { 
    959         OpenLayers.console[methods[i]] = function() {}; 
     959        OpenLayers.Console[methods[i]] = function() {}; 
    960960    } 
    961961})(); 
  • sandbox/tschaub/debug/lib/OpenLayers/Layer.js

    r3152 r3209  
    310310            // layers with gutters need non-null tile sizes 
    311311            //if(tileSize == null) { 
    312             //    OpenLayers.console.error("Error in layer.setMap() for " + 
     312            //    OpenLayers.Console.error("Error in layer.setMap() for " + 
    313313            //                              this.name + ": layers with gutters " + 
    314314            //                              "need non-null tile sizes"); 
  • sandbox/tschaub/debug/tests/BaseTypes/test_Console.html

    r3058 r3209  
    77        /** 
    88         * These tests only assure that OpenLayers works when not 
    9          * in debug mode.  It means that calls to OpenLayers.console 
     9         * in debug mode.  It means that calls to OpenLayers.Console 
    1010         * will not do anything in this case.  When OpenLayers is in 
    1111         * debug mode, we assume that the Firebug extension or Firebug Lite 
     
    1313         */ 
    1414         
    15         // supported OpenLayers.console methods 
     15        // supported OpenLayers.Console methods 
    1616        var methods = ['log', 'debug', 'info', 'warn', 'error', 'assert', 
    1717               'dir', 'dirxml', 'trace', 'group', 'groupEnd', 'time', 
     
    2222        var nothing, method; 
    2323        for(var i=0; i<methods.length; ++i) { 
    24             method = OpenLayers.console[methods[i]]; 
     24            method = OpenLayers.Console[methods[i]]; 
    2525            t.ok(method, 
    26                  "OpenLayers.console." + methods[i] + " exists"); 
    27             nothing = OpenLayers.console[methods[i]](); 
     26                 "OpenLayers.Console." + methods[i] + " exists"); 
     27            nothing = OpenLayers.Console[methods[i]](); 
    2828            t.eq(nothing, null, 
    29                  "OpenLayers.console." + methods[i] + "() " + 
     29                 "OpenLayers.Console." + methods[i] + "() " + 
    3030                 "call is harmless when not in debug mode"); 
    3131        }