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:
@@ -564,6 +564,15 @@ OpenLayers.Map.prototype = {
|
|||||||
return maxResolution;
|
return maxResolution;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/** Wrapper to maintain defined API functionality.
|
||||||
|
* getMaxExtent() should be used from now on.
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
getFullExtent: function() {
|
||||||
|
this.getMaxExtent();
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type OpenLayers.Bounds
|
* @type OpenLayers.Bounds
|
||||||
*/
|
*/
|
||||||
@@ -695,6 +704,15 @@ OpenLayers.Map.prototype = {
|
|||||||
this.getZoomForExtent(bounds));
|
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.
|
/** Zoom to the full extent and recenter.
|
||||||
*/
|
*/
|
||||||
zoomToMaxExtent: function() {
|
zoomToMaxExtent: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user