[OpenLayers-Commits] r4790 - sandbox/euzuro/zoomToResolution/lib/OpenLayers

commits at openlayers.org commits at openlayers.org
Wed Oct 3 14:56:50 EDT 2007


Author: euzuro
Date: 2007-10-03 14:56:49 -0400 (Wed, 03 Oct 2007)
New Revision: 4790

Modified:
   sandbox/euzuro/zoomToResolution/lib/OpenLayers/Layer.js
   sandbox/euzuro/zoomToResolution/lib/OpenLayers/Map.js
Log:
update comments

Modified: sandbox/euzuro/zoomToResolution/lib/OpenLayers/Layer.js
===================================================================
--- sandbox/euzuro/zoomToResolution/lib/OpenLayers/Layer.js	2007-10-03 17:59:06 UTC (rev 4789)
+++ sandbox/euzuro/zoomToResolution/lib/OpenLayers/Layer.js	2007-10-03 18:56:49 UTC (rev 4790)
@@ -731,8 +731,8 @@
      * Parameters:
      * bounds - {<OpenLayers.Bounds>}
      * closest - {Boolean} Find the zoom level that corresponds to the absolute 
-     *     closest for the given extent, which may result in a zoom whose 
-     *     that does not exactly contain the entire extent.
+     *     closest for the given extent, which may result in a zoom that does 
+     *     not exactly contain the entire extent.
      *     Default is false.
      *
      * Returns:

Modified: sandbox/euzuro/zoomToResolution/lib/OpenLayers/Map.js
===================================================================
--- sandbox/euzuro/zoomToResolution/lib/OpenLayers/Map.js	2007-10-03 17:59:06 UTC (rev 4789)
+++ sandbox/euzuro/zoomToResolution/lib/OpenLayers/Map.js	2007-10-03 18:56:49 UTC (rev 4790)
@@ -1367,12 +1367,9 @@
      * 
      * Parameters: 
      * bounds - {<OpenLayers.Bounds>}
-     * closest - {Boolean} Find the zoom level that corresponds to the absolute 
-     *     closest resolution, which may result in a zoom whose corresponding
-     *     resolution is actually smaller than we would have desired (if this
-     *     is being called from a getZoomForExtent() call, then this means that
-     *     the returned zoom index might not actually contain the entire 
-     *     extent specified... but it'll be close).
+     * closest - {Boolean} Find the zoom level that most closely fits the 
+     *     specified bounds. Note that this may result in a zoom that does 
+     *     not exactly contain the entire extent.
      *     Default is false.
      * 
      * Returns:



More information about the Commits mailing list