Changed constructor for bounds to take minlon, minlat, maxlon, maxlat as its arguments. changed all related usage and comments

git-svn-id: http://svn.openlayers.org/trunk/openlayers@104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-17 16:50:12 +00:00
parent fe360c91e5
commit ff2e3017f9
6 changed files with 69 additions and 42 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ OpenLayers.Map.prototype = {
maxZoomLevel: 16,
// OpenLayers.Bounds
maxExtent: new OpenLayers.Bounds(-90, -180, 90, 180),
maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90),
/* maxScale was determined empirically by finding the resolution
of GMaps in degrees per pixel at zoom level 0. */
@@ -187,10 +187,10 @@ OpenLayers.Map.prototype = {
var w_deg = size.w * res;
var h_deg = size.h * res;
return new OpenLayers.Bounds(
this.center.lat - h_deg / 2,
this.center.lon - w_deg / 2,
this.center.lat + h_deg / 2,
this.center.lon + w_deg / 2);
this.center.lat - h_deg / 2,
this.center.lon + w_deg / 2,
this.center.lat + h_deg / 2);
},
/**