Replace all instances and usages of LatLon to LonLat

git-svn-id: http://svn.openlayers.org/trunk/openlayers@99 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-17 15:51:37 +00:00
parent 3d1b137009
commit 6f242f5746
12 changed files with 105 additions and 104 deletions

View File

@@ -65,37 +65,33 @@ OpenLayers.Control.PanZoom.prototype =
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat + (resolution * 50),
center.lon
)
);
new OpenLayers.LonLat(center.lon,
center.lat + (resolution * 50))
);
break;
case "pandown":
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat - (resolution * 50),
center.lon
)
);
new OpenLayers.LonLat(center.lon,
center.lat - (resolution * 50))
);
break;
case "panleft":
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat,
center.lon - (resolution * 50)
)
);
new OpenLayers.LonLat(center.lon - (resolution * 50),
center.lat)
);
break;
case "panright":
var resolution = this.map.getResolution();
var center = this.map.getCenter();
this.map.setCenter(
new OpenLayers.LatLon(center.lat,
center.lon + (resolution * 50)
)
);
new OpenLayers.LonLat(center.lon + (resolution * 50),
center.lat)
);
break;
case "zoomin": this.map.zoomIn(); break;
case "zoomout": this.map.zoomOut(); break;