Hi -<div><br></div><div>I've looked at the available online documentation and was wondering if anyone could offer some hints on what could be wrong?</div><div><br></div><div>I have been comparing it to the samples and don't see anything.</div>
<div><br></div><div><div><!DOCTYPE html></div><div><html></div><div> <head></div><div> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></div><div> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"></div>
<div> <meta name="apple-mobile-web-app-capable" content="yes"></div><div> <title>fish</title></div><div> <link rel="stylesheet" href="../theme/default/style.css" type="text/css"></div>
<div> <link rel="stylesheet" href="style.css" type="text/css"></div><div> <script src="events_test_files/OpenLayers.js"></script></div><div> <script type="text/javascript"></div>
<div> var map, layer, layer2;</div><div> function init(){</div><div> map = new OpenLayers.Map( 'map', {sphericalMercator : true, projection : "EPSG:3857"} );</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>var basemap = new OpenLayers.Layer.XYZ(</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>"USGS Base Map",</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>"<a href="http://basemap.nationalmap.gov/ArcGIS/rest/services/TNM_Vector_Fills_Small/MapServer/tile/${z}/${y}/${x}">http://basemap.nationalmap.gov/ArcGIS/rest/services/TNM_Vector_Fills_Small/MapServer/tile/${z}/${y}/${x}</a>",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>numZoomLevels : 16,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>projection : "EPSG:3857",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>sphericalMercator : true,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>group : "basemap",</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>meta : false,</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>wrapDateLine : true</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>});</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>map.addLayer(basemap);</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>layer2 = new OpenLayers.Layer.WMS( "OpenLayers WMS",</div><div> "<a href="http://vmap0.tiles.osgeo.org/wms/vmap0">http://vmap0.tiles.osgeo.org/wms/vmap0</a>", {layers: 'basic'} );</div>
<div> map.addLayer(layer2);</div><div> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",</div><div> "<a href="http://107.20.228.18/ArcGIS/services/FWS_Wetlands_WMS/mapserver/wmsserver">http://107.20.228.18/ArcGIS/services/FWS_Wetlands_WMS/mapserver/wmsserver</a>?",</div>
<div> {layers: "18,17,16,15,14,13", 'transparent': 'off', format: "png"},</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{isBaseLayer: false, displayInLayerSwitcher: true});</div>
<div> map.addLayer(layer);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>alert(layer.getExtent());</div><div> map.zoomToMaxExtent(layer.getExtent());</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>map.setCenter(new OpenLayers.LonLat(lon=-77.44555646516,lat=39.500732399862)); </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>map.addControl( new OpenLayers.Control.LayerSwitcher() );</div><div> }</div><div> </script></div><div> </head></div><div> <body onload="init()"></div>
<div> <h1 id="title">Basic Single WMS Example</h1></div><div><br></div><div> <div id="tags"></div><div> basic, simple, minimal, cleanup</div><div> </div></div><div>
<br></div><div> <div id="shortdesc">Show a Simple Map</div></div><div><br></div><div> <div id="map" class="smallmap" style="border:1px solid blue;width:512px;height:256px;"></></div></div>
<div><br></div><div> <div id="docs"></div><div> <p>This example shows a very simple layout with minimal controls.</div><div> This example uses a single WMS base layer.</p></div>
<div> </div></div><div> </body></div><div></html></div></div><div><br></div><div>thanks,</div><div>Doug</div>