[Commits] r1745 - sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data

commits at geoext.org commits at geoext.org
Thu Jan 14 09:27:34 CET 2010


Author: ahocevar
Date: 2010-01-14 09:27:34 +0100 (Thu, 14 Jan 2010)
New Revision: 1745

Modified:
   sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintPage.js
Log:
now PrintExtent adds the page to the layer - layer property no longer needed.

Modified: sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintPage.js
===================================================================
--- sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintPage.js	2010-01-14 04:38:00 UTC (rev 1744)
+++ sandbox/ahocevar/playground/trunk/geoext/lib/GeoExt/data/PrintPage.js	2010-01-14 08:27:34 UTC (rev 1745)
@@ -34,11 +34,6 @@
      */
     printProvider: null,
     
-    /** api: config[layer]
-     *  ``OpenLayers.Layer.Vector`` Optional. If provided, feature and handle
-     *  will be added to that layer.
-     */
-    
     /** api: property[feature]
      *  ``OpenLayers.Feature.Vector`` Feature representing the page extent.
      *  Read-only.
@@ -78,7 +73,6 @@
     constructor: function(config) {
         this.initialConfig = config;
         Ext.apply(this, config);
-        delete this.layer;
         
         if(!this.customParams) {
             this.customParams = {};
@@ -100,9 +94,6 @@
             OpenLayers.Geometry.fromWKT("POLYGON((-1 -1,1 -1,1 1,-1 1,-1 -1))"));
         this.handle = new OpenLayers.Feature.Vector(
             new OpenLayers.Geometry.Point(0,0));
-        if(config.layer) {
-            config.layer.addFeatures([this.feature, this.handle]);
-        }
         
         this.printProvider.on({
             "layoutchange": this.updateByHandle,



More information about the Commits mailing list