Updating layer opacity example with url for USGS wmsconnector.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@6830 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-04-09 13:57:48 +00:00
parent 67b796d88b
commit d2079fb927

View File

@@ -49,23 +49,20 @@
} }
function init(){ function init(){
var options = { var options = {
projection: "EPSG:26912", maxExtent: new OpenLayers.Bounds(-110.994, 45.885, -110.950, 45.929),
units: 'm', maxResolution: "auto"
maxExtent: new OpenLayers.Bounds(455402, 4967657, 473295, 4984095),
maxResolution: 'auto',
maxZoomLevel: 8
}; };
map = new OpenLayers.Map('map', options); map = new OpenLayers.Map('map', options);
var drg = new OpenLayers.Layer.WMS("Topo Maps", var drg = new OpenLayers.Layer.WMS("Topo Maps",
"http://terraservice.net/ogcmap.ashx", "http://terraservice.net/ogcmap.ashx",
{layers: "DRG"}); {layers: "DRG"});
shade = new OpenLayers.Layer.WMS("Shaded Relief", 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'}, {layers: "HR-NED.IMAGE", reaspect: "false", transparent: 'true'},
{isBaseLayer: false, opacity: 0.3}); {isBaseLayer: false, opacity: 0.3});
map.addLayers([drg, shade]); map.addLayers([drg, shade]);
map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.LayerSwitcher());
map.setCenter(new OpenLayers.LonLat(464348.5,4975876), 1); map.zoomToMaxExtent();
} }
</script> </script>
</head> </head>