[Commits] r1594 - sandbox/ahocevar/playground/ux/Printing/ux/widgets/form

commits at geoext.org commits at geoext.org
Thu Dec 17 17:29:43 CET 2009


Author: ahocevar
Date: 2009-12-17 17:29:43 +0100 (Thu, 17 Dec 2009)
New Revision: 1594

Modified:
   sandbox/ahocevar/playground/ux/Printing/ux/widgets/form/PrintForm.js
Log:
removed code for setting printProvider's units.

Modified: sandbox/ahocevar/playground/ux/Printing/ux/widgets/form/PrintForm.js
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/ux/widgets/form/PrintForm.js	2009-12-17 15:59:56 UTC (rev 1593)
+++ sandbox/ahocevar/playground/ux/Printing/ux/widgets/form/PrintForm.js	2009-12-17 16:29:43 UTC (rev 1594)
@@ -20,8 +20,7 @@
  *  :class:`GeoExt.ux.data.PrintProvider`, :class:`GeoExt.ux.data.PrintPage`
  *  and the plugins available for fields to synchronize. The form uses
  *  a layer to draw the page extent and handle features of print pages,
- *  with a control to modify them. Finally, it configures the printProvider
- *  with the appropriate units of the map.
+ *  with a control to modify them.
  *  
  *  This form comes with no fields and is meant to be extended (unless it is
  *  enough to configure print extent, scale and rotation interactively on the
@@ -42,15 +41,12 @@
     
     /** api: config[map]
      *  ``GeoExt.MapPanel``|``OpenLayers.Map`` The map the drag control will
-     *  be added to. The units for the printProvider are also taken from this
-     *  map. Optional if a layer is provided and the layer has already been
-     *  added to a map.
+     *  be added to. Optional if a layer is provided and the layer has already
+     *  been added to a map.
      */
     
     /** private: property[map]
      *  ``OpenLayers.Map`` The map that layer and control will be added to.
-     *  Optional if a layer is provided, and that layer is already added to
-     *  a map.
      */
     map: null,
     
@@ -92,7 +88,6 @@
         if(!this.map) {
             this.map = this.layer.map;
         }
-        this.printProvider.units = this.map.baseLayer.units;
         
         if(!this.pages) {
             this.pages = [];



More information about the Commits mailing list