Change the remaining examples that reference MetaCarta Labs server to

point to the newly set up TileCache service on the OSGeo projects
server.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@10709 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2010-09-01 19:12:41 +00:00
parent fb35f555be
commit cfa3353d42
7 changed files with 15 additions and 20 deletions

View File

@@ -12,7 +12,7 @@
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'}, "http://vmap0.tiles.osgeo.org/wms/vmap0?", {layers: 'basic'},
{'attribution': 'Provided by <a href="http://labs.metacarta.com/">MetaCarta</a>'}); {'attribution': 'Provided by OSGeo'});
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic", var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
"http://t1.hypercube.telascience.org/cgi-bin/landsat7", "http://t1.hypercube.telascience.org/cgi-bin/landsat7",

View File

@@ -13,8 +13,8 @@
function init(){ function init(){
map = new OpenLayers.Map( 'map' ); map = new OpenLayers.Map( 'map' );
var urlArray = ["http://t1.labs.metacarta.com/wms-c/Basic.py", var urlArray = ["http://tilecache.osgeo.org/wms-c/Basic.py",
"http://t2.labs.metacarta.com/wms-c/Basic.py"]; "http://tilecache.osgeo.org/wms-c/Basic.py"];
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
urlArray, urlArray,
{layers: 'basic'} ); {layers: 'basic'} );

View File

@@ -34,9 +34,9 @@
function init() { function init() {
map = new OpenLayers.Map('map'); map = new OpenLayers.Map('map');
var base = new OpenLayers.Layer.WMS("OpenLayers WMS", var base = new OpenLayers.Layer.WMS("OpenLayers WMS",
["http://t3.labs.metacarta.com/wms-c/Basic.py", ["http://t3.tilecache.osgeo.org/wms-c/Basic.py",
"http://t2.labs.metacarta.com/wms-c/Basic.py", "http://t2.tilecache.osgeo.org/wms-c/Basic.py",
"http://t1.labs.metacarta.com/wms-c/Basic.py"], "http://t1.tilecache.osgeo.org/wms-c/Basic.py"],
{layers: 'satellite'} {layers: 'satellite'}
); );

View File

@@ -11,11 +11,11 @@
resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125] resolutions: [0.087890625, 0.0439453125, 0.02197265625, 0.010986328125]
}); });
layer = new OpenLayers.Layer.TileCache("TileCache Layer", layer = new OpenLayers.Layer.TileCache("TileCache Layer",
["http://c0.labs.metacarta.com/wms-c/cache/", ["http://c0.tilecache.osgeo.org/wms-c/cache/",
"http://c1.labs.metacarta.com/wms-c/cache/", "http://c1.tilecache.osgeo.org/wms-c/cache/",
"http://c2.labs.metacarta.com/wms-c/cache/", "http://c2.tilecache.osgeo.org/wms-c/cache/",
"http://c3.labs.metacarta.com/wms-c/cache/", "http://c3.tilecache.osgeo.org/wms-c/cache/",
"http://c4.labs.metacarta.com/wms-c/cache/"], "http://c4.tilecache.osgeo.org/wms-c/cache/"],
"basic", "basic",
{ {
serverResolutions: [0.703125, 0.3515625, 0.17578125, 0.087890625, serverResolutions: [0.703125, 0.3515625, 0.17578125, 0.087890625,

View File

@@ -13,7 +13,7 @@
function init(){ function init(){
map = new OpenLayers.Map( 'map', {maxResolution:1.40625/2} ); map = new OpenLayers.Map( 'map', {maxResolution:1.40625/2} );
layer = new OpenLayers.Layer.TMS( "TMS", layer = new OpenLayers.Layer.TMS( "TMS",
"http://labs.metacarta.com/wms-c/Basic.py/", {layername: 'basic', type:'png'} ); "http://tilecache.osgeo.org/wms-c/Basic.py/", {layername: 'basic', type:'png'} );
map.addLayer(layer); map.addLayer(layer);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
@@ -43,9 +43,9 @@
<div id="map" class="smallmap"></div> <div id="map" class="smallmap"></div>
<div id="docs"> <div id="docs">
URL of TMS (Should end in /): <input type="text" id="url" size="60" value="http://labs.metacarta.com/wms-c/Basic.py/" /> layer_name <input type="text" id="layer" value="satellite" /> <select id="type"><option>jpg</option><option>png</option></select> <input type="submit" onclick="addTMS()"/><br /> URL of TMS (Should end in /): <input type="text" id="url" size="60" value="http://tilecache.osgeo.org/wms-c/Basic.py/" /> layer_name <input type="text" id="layer" value="basic" /> <select id="type"><option>jpg</option><option>png</option></select> <input type="submit" onclick="addTMS()"/><br />
<p> <p>
Example: http://labs.metacarta.com/wms-c/Basic.py/, satellite, jpg<br /> Example: http://tilecache.osgeo.org/wms-c/Basic.py/, basic, jpg<br />
The first input must be an HTTP URL pointing to a TMS instance. The second The first input must be an HTTP URL pointing to a TMS instance. The second
input must be a layer name available from that instance, and the third must input must be a layer name available from that instance, and the third must
be the output format used by that layer. (Any other behavior will result in be the output format used by that layer. (Any other behavior will result in

View File

@@ -5,7 +5,7 @@ function init() {
map = new OpenLayers.Map("map"); map = new OpenLayers.Map("map");
var base = new OpenLayers.Layer.WMS("OpenLayers WMS", var base = new OpenLayers.Layer.WMS("OpenLayers WMS",
"http://labs.metacarta.com/wms-c/Basic.py", "http://tilecache.osgeo.org/wms-c/Basic.py",
{layers: "basic"} {layers: "basic"}
); );
map.addLayer(base); map.addLayer(base);

View File

@@ -25,11 +25,6 @@
transparent: "true", format: "image/png"}, transparent: "true", format: "image/png"},
{wrapDateLine: true, reproject: false}); {wrapDateLine: true, reproject: false});
/* TMS is broken, too */
tms = new OpenLayers.Layer.TMS( "OpenStreetMap",
"http://labs.metacarta.com/wms-c/Basic.py/",
{layername: 'osm-map', type:'png', wrapDateLine: true} );
/* WW doesn't quite work yet */ /* WW doesn't quite work yet */
ww = new OpenLayers.Layer.WorldWind( "LANDSAT", ww = new OpenLayers.Layer.WorldWind( "LANDSAT",
"http://worldwind25.arc.nasa.gov/tile/tile.aspx", 2.25, 4, "http://worldwind25.arc.nasa.gov/tile/tile.aspx", 2.25, 4,