move Layer.Yahoo into deprecated.js

This commit is contained in:
fredj
2011-11-18 12:13:41 +01:00
parent 0307bb481c
commit 8d01fa6fd8
7 changed files with 425 additions and 505 deletions

View File

@@ -20,7 +20,6 @@
</style>
<script src="http://maps.google.com/maps/api/js?v=3.5&amp;sensor=false"></script>
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../lib/OpenLayers.js"></script>
</head>
@@ -28,11 +27,11 @@
<h1 id="title">OpenLayers Spherical Mercator Example</h1>
<div id="tags">
spherical, mercator, osm, xyz, google, virtual earth, yahoo, tile
spherical, mercator, osm, xyz, google, virtual earth, tile
</div>
<p id="shortdesc">
Shows the use of the Spherical Mercator Layers, for overlaying
Google, Yahoo, Microsoft, and other layers with XYZ tiles.
Google, Microsoft, and other layers with XYZ tiles.
</p>
<div id="map" class="smallmap"></div>
@@ -89,20 +88,6 @@
wrapDateLine: true
});
// create Yahoo layer
var yahoo = new OpenLayers.Layer.Yahoo(
"Yahoo Street",
{sphericalMercator: true}
);
var yahoosat = new OpenLayers.Layer.Yahoo(
"Yahoo Satellite",
{'type': YAHOO_MAP_SAT, sphericalMercator: true}
);
var yahoohyb = new OpenLayers.Layer.Yahoo(
"Yahoo Hybrid",
{'type': YAHOO_MAP_HYB, sphericalMercator: true}
);
// create OSM layers
var mapnik = new OpenLayers.Layer.OSM();
@@ -115,8 +100,7 @@
var vector = new OpenLayers.Layer.Vector("Editable Vectors");
map.addLayers([
gphy, gmap, gsat, ghyb, veroad, veaer, vehyb, yahoo, yahoosat,
yahoohyb, mapnik, osmarender, vector
gphy, gmap, gsat, ghyb, veroad, veaer, vehyb, mapnik, osmarender, vector
]);
map.addControl(new OpenLayers.Control.LayerSwitcher());
map.addControl(new OpenLayers.Control.EditingToolbar(vector));

View File

@@ -1,52 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>OpenLayers: Yahoo Layer</title>
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
<link rel="stylesheet" href="style.css" type="text/css">
<script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
var map, layer, velayer;
function init(){
map = new OpenLayers.Map('map');
yahooLayer = new OpenLayers.Layer.Yahoo( "Yahoo");
map.addLayer(yahooLayer);
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(-5, 40), 4);
map.addControl(new OpenLayers.Control.LayerSwitcher());
}
</script>
</head>
<body onload="init()">
<h1 id="title">Yahoo Base Layer Example</h1>
<div id="tags">
yahoo, layer
</div>
<p id="shortdesc">
Shows how you would add a yahoo layer and add the LayerSwitcher control
</p>
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This is an example of how to add a yahoo layer to the OpenLayers
window. In order to enable a yahoo layer, also shown in this
example is the LayerSwitcher() control for toggling between both
the yahoo layer and the OSGeo WMS.
</div>
</body>
</html>