move Layer.Yahoo into deprecated.js
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
</style>
|
||||
|
||||
<script src="http://maps.google.com/maps/api/js?v=3.5&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));
|
||||
|
||||
Reference in New Issue
Block a user