[OpenLayers-Commits] r11869 - trunk/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Apr 4 12:48:56 EDT 2011


Author: tschaub
Date: 2011-04-04 09:48:55 -0700 (Mon, 04 Apr 2011)
New Revision: 11869

Modified:
   trunk/openlayers/examples/wmc.html
Log:
Updating wmc.html example to use a currently working service.

Modified: trunk/openlayers/examples/wmc.html
===================================================================
--- trunk/openlayers/examples/wmc.html	2011-04-04 15:12:44 UTC (rev 11868)
+++ trunk/openlayers/examples/wmc.html	2011-04-04 16:48:55 UTC (rev 11869)
@@ -31,16 +31,11 @@
             };
             map = new OpenLayers.Map("map", options);
 
-            var jpl = new OpenLayers.Layer.WMS(
-                "NASA Global Mosaic",
-                "http://t1.hypercube.telascience.org/cgi-bin/landsat7", 
-                {layers: "landsat7"},
-                {
-                    maxExtent: new OpenLayers.Bounds(-130, 14, -60, 55),
-                    maxResolution: 0.1,
-                    numZoomLevels: 4,
-                    minResolution: 0.02
-                }
+            var gwc = new OpenLayers.Layer.WMS(
+                "Global Imagery",
+                "http://maps.opengeo.org/geowebcache/service/wms",
+                {layers: "bluemarble"},
+                {tileOrigin: new OpenLayers.LonLat(-180, -90)}
             );
 
             var vmap = new OpenLayers.Layer.WMS(
@@ -90,9 +85,9 @@
                 }
             );
 
-            map.addLayers([jpl, vmap, roads, nexrad]);
+            map.addLayers([gwc, vmap, roads, nexrad]);
             map.addControl(new OpenLayers.Control.LayerSwitcher());
-            map.setCenter(new OpenLayers.LonLat(-95, 34.5), 1);
+            map.setCenter(new OpenLayers.LonLat(-95, 34.5), 4);
         };
         
         function readWMC(merge) {



More information about the Commits mailing list