Hi

I have had problems with getting the support console interface to work,  
the current version of firebug and firebug lite seem to include extra 
features.

I wondering if it might be useful to change the current interface so 
that openlayers can use either the current version of openlayers console 
or the firebug version by saying something like

(function() {
    /**
     * If Firebug Lite is included (before this script), re-route all
     * OpenLayers.Console calls to the console object.
     */
    var scripts = document.getElementsByTagName("script");
    for(var i=0, len=scripts.length; i<len; ++i) {
        if(scripts[i].src.indexOf("firebug.js") >= 0 ||
           scripts[i].src.indexOf("firebug-lite.js") >= 0  ||
           scripts[i].src.indexOf("firebug-lite.compressed.js") >= 0 ) {
            if(console) {
                OpenLayers.Util.extend(OpenLayers.Console, console);
                break;
            }
        }
    }
})();

This way you leave up to the user as to which version of firebug is 
used!  If a user supples firebug-lite, then its used.


Dave.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to