From d2079fb927f72f72721415c6cc09af5830895b91 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 9 Apr 2008 13:57:48 +0000 Subject: [PATCH] Updating layer opacity example with url for USGS wmsconnector. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/layer-opacity.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/layer-opacity.html b/examples/layer-opacity.html index 95ecf04eb1..adb70aa6c6 100644 --- a/examples/layer-opacity.html +++ b/examples/layer-opacity.html @@ -49,23 +49,20 @@ } function init(){ var options = { - projection: "EPSG:26912", - units: 'm', - maxExtent: new OpenLayers.Bounds(455402, 4967657, 473295, 4984095), - maxResolution: 'auto', - maxZoomLevel: 8 + maxExtent: new OpenLayers.Bounds(-110.994, 45.885, -110.950, 45.929), + maxResolution: "auto" }; map = new OpenLayers.Map('map', options); var drg = new OpenLayers.Layer.WMS("Topo Maps", "http://terraservice.net/ogcmap.ashx", {layers: "DRG"}); shade = new OpenLayers.Layer.WMS("Shaded Relief", - "http://ims.cr.usgs.gov/servlet19/com.esri.wms.Esrimap/USGS_EDC_Elev_NED_3", + "http://gisdata.usgs.gov/wmsconnector/com.esri.wms.Esrimap?ServiceName=USGS_EDC_Elev_NED_3", {layers: "HR-NED.IMAGE", reaspect: "false", transparent: 'true'}, {isBaseLayer: false, opacity: 0.3}); map.addLayers([drg, shade]); map.addControl(new OpenLayers.Control.LayerSwitcher()); - map.setCenter(new OpenLayers.LonLat(464348.5,4975876), 1); + map.zoomToMaxExtent(); }