<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>GISCO OpenLayers WMS</title>
<link rel="stylesheet" href="http://openlayers.org/dev/theme/default/style.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
<>
<style type="text/css">
#controls
{
width: 100%;
height: 400px;
}
</style>
<>
<script src="http://openlayers.org/dev/OpenLayers.js" type='text/javascript'></script>
<script type="text/javascript">
<>
OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
OpenLayers.Util.onImageLoadErrorColor = "transparent";
<>
var map;
<>
var lon = -105;
var lat = 39.71;
var zoom = 5;
<>
function init(){
<>
map = new OpenLayers.Map( 'map' );
<>
<>
var blm_states = new OpenLayers.Layer.WMS("BLM States",
"http://www.geocommunicator.gov:80/wmsconnector/com.esri.wms.Esrimap/BLM_MAP_BASEMAPS",
{layers: "States", reaspect: "false"},{singleTile: true, ratio: 1, isBaseLayer: true});
<>
<>
<>
var usgs_topo = new OpenLayers.Layer.WMS( "USGS Topos",
"http://terraservice.net/ogcmap.ashx?",
{layers: 'DRG'},{isBaseLayer: true} );
<>
var blm_lease = new OpenLayers.Layer.WMS("Producing O&G Leases",
"http://www.geocommunicator.gov:80/wmsconnector/com.esri.wms.Esrimap/BLM_MAP_OIL_AND_GAS",
{layers: "Oil and Gas Leases Producing", reaspect: "false", transparent: "true"},{isBaseLayer: false,visibility:false});
<>
<>
var sale_lease = new OpenLayers.Layer.WMS("O&G Lease Sales",
"http://www.geocommunicator.gov:80/wmsconnector/com.esri.wms.Esrimap/BLM_MAP_OIL_AND_GAS",
{layers: "Lease Sale Parcels", reaspect: "false", transparent: "true"}, {isBaseLayer: false, visibility:false});
var blm_land = new OpenLayers.Layer.WMS("BLM Land",
"http://www.geocommunicator.gov:80/wmsconnector/com.esri.wms.Esrimap/BLM_MAP_SURFACE_MGT_AGY",
{layers: "BLM Lands Dissolved,BLM Lands", reaspect: "false",transparent: "true"}, {isBaseLayer: false, visibility:false});
<>
<>
var nf_land = new OpenLayers.Layer.WMS("National Forests",
"http://www.geocommunicator.gov:80/wmsconnector/com.esri.wms.Esrimap/BLM_MAP_SURFACE_MGT_AGY",
{layers: "National Forest Labels,National Forests Dissolved,National Forests", reaspect: "false",transparent: "true"}, {isBaseLayer: false, singleTile: true, ratio: 1, visibility:false});
<>
<>
<>
var drcog_blk = new OpenLayers.Layer.WMS("DRCOG Census Blk Grps",
"http://gis.drcog.org/geoserver/wms?",
{layers: "bg2000", transparent: "true"}, {visibility:false, isBaseLayer: false});
<>
map.addLayers([blm_states,usgs_topo,blm_land,nf_land,blm_lease,sale_lease,drcog_blk]);
<>
<>
var ls = new OpenLayers.Control.LayerSwitcher({'div':OpenLayers.Util.getElement('layerswitcher'),activeColor:'#660066'})
map.addControl(ls);
<>
map.addControl( new OpenLayers.Control.MousePosition() );
<>
var panel = new OpenLayers.Control.NavToolbar();
map.addControl(panel);
<>
ls.maximizeControl();
<>
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
<>
</script>
</head>
<>
<body onload="init()">
<p style="font-family:verdana;font-size:10pt">
<b>Rockin' WMS With OpenLayers</b>
<a href="source.html" target="_blank">View Source Code</a>
</p>
<hr>
<br>
<>
<div id="controls">
<div id="map" class="smallmap"></div>
</div>
</body>
</html>