<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19328"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=269490020-25102012><FONT color=#0000ff
size=2 face=Arial>you have to declare a width and heght for your map
div.</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=269490020-25102012>ugly
way:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial> <div id="map"
class="smallmap" style="border:1px solid
blue;width:512px;height:256px;"></div><BR></DIV></FONT>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=269490020-25102012>and
try this init() function:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=269490020-25102012></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=269490020-25102012> function
init(){<BR>
map = new OpenLayers.Map( 'map'
);<BR> layer =
new OpenLayers.Layer.WMS( "OpenLayers
WMS",<BR>
"<A
href="http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NED">http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NED</A>?",<BR>
{layers: 'NED.HI_NED', exceptions:'application/vnd.ogc.se_inimage',
format:'image/png'}
);<BR>
map.addLayer(layer);<BR>
//map.zoomToMaxExtent();<BR>
map.setCenter(new OpenLayers.LonLat(lon=-155.44555646516,lat=19.500732399862),
7); //Hawai<BR>
}<BR></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN
class=269490020-25102012>Arnd</SPAN></FONT></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Doug
Kunzman<BR><B>Gesendet:</B> Donnerstag, 25. Oktober 2012 01:45<BR><B>An:</B>
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] National
Elevation Data -EROS<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=2 face=sans-serif>I'm trying to display a layer from the
EROS national elevation dataset hosted by the USGS in openlayers.</FONT>
<BR><BR><FONT size=2 face=sans-serif>this code isn't working...</FONT>
<BR><BR><FONT size=2 face=sans-serif><!DOCTYPE html></FONT> <BR><FONT
size=2 face=sans-serif><html></FONT> <BR><FONT size=2
face=sans-serif> <head></FONT> <BR><FONT size=2
face=sans-serif> <meta http-equiv="Content-Type"
content="text/html; charset=utf-8"></FONT> <BR><FONT size=2
face=sans-serif> <meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0,
user-scalable=0"></FONT> <BR><FONT size=2 face=sans-serif>
<meta name="apple-mobile-web-app-capable" content="yes"></FONT> <BR><FONT
size=2 face=sans-serif> <title>OpenLayers Basic Single WMS
Example</title></FONT> <BR><FONT size=2 face=sans-serif>
<link rel="stylesheet" href="../theme/default/style.css"
type="text/css"></FONT> <BR><FONT size=2 face=sans-serif>
<link rel="stylesheet" href="style.css" type="text/css"></FONT> <BR><FONT
size=2 face=sans-serif> <script
src="OpenLayers.js"></script></FONT> <BR><FONT size=2
face=sans-serif> <script type="text/javascript"></FONT>
<BR><FONT size=2 face=sans-serif> var map,
layer;</FONT> <BR><FONT size=2 face=sans-serif>
function init(){</FONT> <BR><FONT size=2 face=sans-serif>
map = new OpenLayers.Map( 'map' );</FONT> <BR><FONT size=2
face=sans-serif> layer = new
OpenLayers.Layer.WMS( "OpenLayers WMS",</FONT> <BR><FONT size=2
face=sans-serif>
"</FONT><A
href="http://imsref.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NED?"><FONT
size=2
face=sans-serif>http://imsref.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Elev_NED?</FONT></A><FONT
size=2 face=sans-serif>",</FONT> <BR><FONT size=2 face=sans-serif>
{layers: 'NED.HI_NED'}
);</FONT> <BR><FONT size=2 face=sans-serif>
map.addLayer(layer);</FONT> <BR><FONT size=2 face=sans-serif>
map.zoomToMaxExtent();</FONT> <BR><FONT
size=2 face=sans-serif> }</FONT> <BR><FONT size=2
face=sans-serif> </script></FONT> <BR><FONT size=2
face=sans-serif> </head></FONT> <BR><FONT size=2
face=sans-serif> <body onload="init()"></FONT> <BR><FONT size=2
face=sans-serif> <h1 id="title">Basic Single WMS
Example</h1></FONT> <BR><BR><FONT size=2 face=sans-serif>
<div id="tags"></FONT> <BR><FONT size=2 face=sans-serif>
basic, simple, minimal, cleanup</FONT> <BR><FONT size=2
face=sans-serif> </div></FONT> <BR><BR><FONT size=2
face=sans-serif> <div id="shortdesc">Show a Simple
Map</div></FONT> <BR><BR><FONT size=2 face=sans-serif>
<div id="map" class="smallmap"></div></FONT> <BR><BR><FONT size=2
face=sans-serif> <div id="docs"></FONT> <BR><FONT size=2
face=sans-serif> <p>This example shows a very
simple layout with minimal controls.</FONT> <BR><FONT size=2
face=sans-serif> This example uses a single WMS base
layer.</p></FONT> <BR><FONT size=2 face=sans-serif>
</div></FONT> <BR><FONT size=2 face=sans-serif> </body></FONT>
<BR><FONT size=2 face=sans-serif></html></FONT> <BR><BR><FONT size=2
face=sans-serif>Can someone please tell me what I'm doing wrong? I don't
appear to be getting a response in firebug.</FONT> <BR><BR><FONT size=2
face=sans-serif>Douglas Kunzman<BR>12201 Sunrise Valley Drive<BR>Reston, VA
20192<BR>Phone: 703 648-4234<BR>dkunzman@usgs.gov<BR></FONT></BODY></HTML>