[Commits] r1886 - core/trunk/geoext/lib/GeoExt/data
commits at geoext.org
commits at geoext.org
Thu Feb 11 21:28:53 CET 2010
Author: ahocevar
Date: 2010-02-11 21:28:53 +0100 (Thu, 11 Feb 2010)
New Revision: 1886
Modified:
core/trunk/geoext/lib/GeoExt/data/PrintPage.js
Log:
Removed unused getCenter() method, and documented previously undocumented center property instead. Non-functional change.
Modified: core/trunk/geoext/lib/GeoExt/data/PrintPage.js
===================================================================
--- core/trunk/geoext/lib/GeoExt/data/PrintPage.js 2010-02-11 20:27:24 UTC (rev 1885)
+++ core/trunk/geoext/lib/GeoExt/data/PrintPage.js 2010-02-11 20:28:53 UTC (rev 1886)
@@ -39,6 +39,11 @@
*/
feature: null,
+ /** api: property[center]
+ * ``OpenLayers.LonLat`` The current center of the page. Read-only.
+ */
+ center: null,
+
/** api: property[scale]
* ``Ext.data.Record`` The current scale record of the page. Read-only.
*/
@@ -95,15 +100,6 @@
});
},
- /** api: method[getCenter]
- * :return: ``OpenLayers.LonLat``
- *
- * Returns the current page center.
- */
- getCenter: function() {
- return this.feature.geometry.getBounds().getCenterLonLat();
- },
-
/** api: method[setScale]
* :param scale: ``Ext.data.Record`` The new scale record.
* :param units: ``String`` map units to use for the scale calculation.
More information about the Commits
mailing list