From 5a68e0ffe01188388dd2aa2b706c2e535ad4ac2e Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 17:11:24 +0000 Subject: [PATCH] stop using deprecated functions in examples and tests git-svn-id: http://svn.openlayers.org/trunk/openlayers@1244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/kamap.html | 2 +- examples/xhtml.html | 2 +- tests/test_Map.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/kamap.html b/examples/kamap.html index 964613b3c9..8f1cacf235 100644 --- a/examples/kamap.html +++ b/examples/kamap.html @@ -27,7 +27,7 @@ map.addLayers([ol_wms, jpl_wms, dm_wms]); map.addControl(new OpenLayers.Control.LayerSwitcher()); - map.zoomToFullExtent(); + map.zoomToMaxExtent(); } // --> diff --git a/examples/xhtml.html b/examples/xhtml.html index e93239bebb..54f1a2b8af 100644 --- a/examples/xhtml.html +++ b/examples/xhtml.html @@ -11,7 +11,7 @@ var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} ); map.addLayer(wms); - map.zoomToFullExtent(); + map.zoomToMaxExtent(); diff --git a/tests/test_Map.html b/tests/test_Map.html index 3f02b5fe7f..11ccc79ec9 100644 --- a/tests/test_Map.html +++ b/tests/test_Map.html @@ -86,7 +86,7 @@ t.eq( map.getZoom(), 5, "map.zoom is correct after calling zoomTo" ); /** map.zoomToMaxExtent(); - t.eq( map.getZoom(), 2, "map.zoom is correct after calling zoomToFullExtent" ); + t.eq( map.getZoom(), 2, "map.zoom is correct after calling zoomToMaxExtent" ); var lonlat = map.getCenter(); var zero = new OpenLayers.LonLat(0, 0); t.ok( lonlat.equals(zero), "map center is correct after calling zoomToFullExtent" );