[OpenLayers-Commits] r1757 - sandbox/crschmidt/refractions/lib/OpenLayers/Layer

commits at openlayers.org commits at openlayers.org
Fri Nov 3 09:06:19 EST 2006


Author: crschmidt
Date: 2006-11-03 09:06:16 -0500 (Fri, 03 Nov 2006)
New Revision: 1757

Modified:
   sandbox/crschmidt/refractions/lib/OpenLayers/Layer/Refractions.js
Log:
Fix up some typos.


Modified: sandbox/crschmidt/refractions/lib/OpenLayers/Layer/Refractions.js
===================================================================
--- sandbox/crschmidt/refractions/lib/OpenLayers/Layer/Refractions.js	2006-11-03 14:01:30 UTC (rev 1756)
+++ sandbox/crschmidt/refractions/lib/OpenLayers/Layer/Refractions.js	2006-11-03 14:06:16 UTC (rev 1757)
@@ -12,17 +12,9 @@
 OpenLayers.Layer.Refractions.prototype = 
   OpenLayers.Class.inherit( OpenLayers.Layer.Grid, {
 
-    /** Hashtable of default parameter key/value pairs 
-     * @final @type Object */
-    DEFAULT_PARAMS: { service: "Refractions",
-                      version: "1.1.1",
-                      request: "GetMap",
-                      styles: "",
-                      exceptions: "application/vnd.ogc.se_inimage",
-                      format: "image/jpeg"
-                     },
     
-    reproject: true,
+    reproject: false,
+    isBaseLayer: true,
 
     /**
     * @constructor
@@ -34,21 +26,9 @@
     */
     initialize: function(name, url, options) {
         var newArguments = new Array();
-        //uppercase params
-        params = OpenLayers.Util.upperCaseObject(params);
-        newArguments.push(name, url, params, options);
+        newArguments.push(name, url, {}, options);
         OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
-        OpenLayers.Util.applyDefaults(
-                       this.params, 
-                       OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS)
-                       );
 
-        // unless explicitly set in options, if the layer is transparent, 
-        // it will be an overlay
-        if (options == null || options.isBaseLayer == null) {
-            this.isBaseLayer = ((this.params.TRANSPARENT != "true") && 
-                                (this.params.TRANSPARENT != true));
-        }
     },    
 
     /**
@@ -71,7 +51,6 @@
         if (obj == null) {
             obj = new OpenLayers.Layer.Refractions(this.name,
                                            this.url,
-                                           this.params,
                                            this.options);
         }
 



More information about the Commits mailing list