oops. our API promises zoomToFullExtent() and getFullExtent(), so we have to deliver them. Agreed that the name change to max should stay, but for the time being, have to maintain our API. both of these functions are marked as deprecated, and a ticket is being made to eventually remove them.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@811 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-27 23:47:36 +00:00
parent 7d810b47d1
commit f51e970ab1

View File

@@ -564,6 +564,15 @@ OpenLayers.Map.prototype = {
return maxResolution;
},
/** Wrapper to maintain defined API functionality.
* getMaxExtent() should be used from now on.
*
* @deprecated
*/
getFullExtent: function() {
this.getMaxExtent();
},
/**
* @type OpenLayers.Bounds
*/
@@ -695,6 +704,15 @@ OpenLayers.Map.prototype = {
this.getZoomForExtent(bounds));
},
/** Wrapper to maintain defined API functionality.
* zoomToMaxExtent() should be used from now on.
*
* @deprecated
*/
zoomToFullExtent: function() {
this.zoomToMaxExtent();
},
/** Zoom to the full extent and recenter.
*/
zoomToMaxExtent: function() {