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

@@ -23,8 +23,8 @@
function test_02_Map_center(t) {
t.plan(5);
map = new OpenLayers.Map($('map'));
map.setCenter(new OpenLayers.LatLon(1,2), 0);
t.ok( map.getCenter() instanceof OpenLayers.LatLon, "map.getCenter returns a LatLon");
map.setCenter(new OpenLayers.LonLat(2,1), 0);
t.ok( map.getCenter() instanceof OpenLayers.LonLat, "map.getCenter returns a LonLat");
t.eq( map.getZoom(), 0, "map.zoom is correct after calling setCenter");
t.eq( map.getResolution(), map.maxResolution, "map.getResolution() == map.maxResolution");
t.eq( map.getCenter().lat, 1, "map center lat is correct after calling setCenter");
@@ -56,7 +56,7 @@
function test_05_Map_center(t) {
t.plan(4);
map = new OpenLayers.Map($('map'));
map.setCenter(new OpenLayers.LatLon(1,2), 0);
map.setCenter(new OpenLayers.LonLat(2, 1), 0);
map.zoomIn();
t.eq( map.getZoom(), 1, "map.zoom is correct after calling setCenter,zoom in");
t.eq( map.getCenter().lat, 1, "map center lat is correct after calling setCenter,zoom in");
@@ -71,7 +71,7 @@
this.count++;
t.ok(true, "zoomend event was triggered " + this.count + " times");
});
map.setCenter(new OpenLayers.LatLon(1,2), 0);
map.setCenter(new OpenLayers.LonLat(2, 1), 0);
map.zoomIn();
map.zoomOut();
}