Renamed zoomExtent to zoomToFullExtent, added tests for it and for the new lonlat/px convenience functions.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@663 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-06-21 17:12:19 +00:00
parent 221aedebc6
commit bf6ad055df
3 changed files with 21 additions and 5 deletions

View File

@@ -540,10 +540,10 @@ OpenLayers.Map.prototype = {
},
/**
* zoomExtent
* zoomToFullExtent
* Zoom to the full extent and recenter.
*/
zoomExtent: function() {
zoomToFullExtent: function() {
var fullExtent = this.getFullExtent();
var oldZoom = this.zoom;
this.setCenter(