stop using deprecated functions in examples and tests
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1244 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
map.addLayers([ol_wms, jpl_wms, dm_wms]);
|
map.addLayers([ol_wms, jpl_wms, dm_wms]);
|
||||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||||
map.zoomToFullExtent();
|
map.zoomToMaxExtent();
|
||||||
}
|
}
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
|
var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
|
||||||
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
|
"http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
|
||||||
map.addLayer(wms);
|
map.addLayer(wms);
|
||||||
map.zoomToFullExtent();
|
map.zoomToMaxExtent();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+1
-1
@@ -86,7 +86,7 @@
|
|||||||
t.eq( map.getZoom(), 5, "map.zoom is correct after calling zoomTo" );
|
t.eq( map.getZoom(), 5, "map.zoom is correct after calling zoomTo" );
|
||||||
/**
|
/**
|
||||||
map.zoomToMaxExtent();
|
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 lonlat = map.getCenter();
|
||||||
var zero = new OpenLayers.LonLat(0, 0);
|
var zero = new OpenLayers.LonLat(0, 0);
|
||||||
t.ok( lonlat.equals(zero), "map center is correct after calling zoomToFullExtent" );
|
t.ok( lonlat.equals(zero), "map center is correct after calling zoomToFullExtent" );
|
||||||
|
|||||||
Reference in New Issue
Block a user