<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000>Eric,</FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000></FONT> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000>that was very timely as I was going to ask that question. I've added the info, but I'm getting a javascript error.</FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000></FONT> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">Line: 518<BR>Char: 54<BR>Error: 'this.center' is null or not an object</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">Now I've set:</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> var lat = 596558; <BR> var lon = 4195115;<BR> var zoom = 6;</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">and I'm using:</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000></FONT> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<BR> map.addControl(new OpenLayers.Control.LayerSwitcher());</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">my lat/long is the UTM coords which I believe i can use in this situation. I'm guessing though something still isn't right with those number. I've looked at OpenLayers.js to see what is happening there, but I've got no real good idea.</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">I'm sure this is just basic JavaScript questions, but I've been living in a .NET world too long. ;)</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">Thanks for your help guys!</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt">David</P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"> </P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT face="Courier New" color=#000000>-----Original Message-----<BR>From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On Behalf Of Eric Lemoine<BR>Sent: Friday, November 09, 2007 12:46 PM<BR>To: Richard Duivenvoorde<BR>Cc: users@openlayers.org<BR>Subject: Re: [OpenLayers-Users] Getting up and running with OpenLayers</FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Courier New" color=#000000> </FONT></o:p></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">In addition to what Richard said you will also need to call<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">map.setCenter() or map.zoomToMaxExtent() to actually see something on<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">the map. Take a look at the wms example<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">(<http://www.openlayers.org/dev/examples/wms.html>). Good luck.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Courier New" color=#000000> </FONT></o:p></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">--<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">Eric<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Courier New" color=#000000> </FONT></o:p></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">On Nov 9, 2007 6:13 PM, Richard Duivenvoorde <rdmailings@duif.net> wrote:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> Hi David,<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> the error you see is because openlayers is asking for a layer in the<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> epsg:4326 (default latlon) projection.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> You can do two things:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> - either add EPSG:4326 to your WMS_SRS "EPSG:32616" line in the WEB part<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> of your mapserver map file<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> if your mapserver and proj lib are ok, this will make mapserver project<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> your 32616 data to 4326 and you will see latlon projected maps in OL.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> But probably you want to see 32616 projected maps, you can do that by<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> telling OL that the Map's projection is 32616: something like this:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> map = new OpenLayers.Map('map',<SPAN style="mso-spacerun: yes"> </SPAN>{<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><SPAN style="mso-spacerun: yes"> </SPAN>'projection':'EPSG:32616',<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><SPAN style="mso-spacerun: yes"> </SPAN>'units':'m',<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><SPAN style="mso-spacerun: yes"> </SPAN>'maxExtent':new OpenLayers.Bounds(582919,4182989,610195,4207241),<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><SPAN style="mso-spacerun: yes"> </SPAN>});<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> hope this helps something.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> grtz,<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> Richard Duivenvoorde<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ps have also a look at<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> http://www.openlayers.org/dev/examples/projected-map.html<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> drk mattr wrote:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > I've been reading about OpenLayers on James Fee's blog and I'm really<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > interested in working with it.<SPAN style="mso-spacerun: yes"> </SPAN>I'm a long time ArcIMS developer so the<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > concepts here are close to what I'm used to using (well I'm not used to<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > using JavaScript which is my problem).<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > I've got a mapfile up and running.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > MAP<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>NAME Installation<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>SIZE 800 500<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>IMAGECOLOR 240 240 240<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>EXTENT 582919.88200 4182989.235900 610195.822000 4207241.321900<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>UNITS METERS<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>PROJECTION<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>"init=EPSG:32616"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WEB<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>IMAGEPATH "/ms4w/tmp/ms_tmp/"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>IMAGEURL "/ms_tmp/"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>METADATA<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WMS_TITLE "WMS Test"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WMS_ABSTRACT "My attempt at actually moving from ArcIMS to WMS"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WMS_ACCESSCONSTRAINTS "none"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WMS_ONLINERESOURCE "http://localhost:8080/test/test.html"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>WMS_SRS "EPSG:32616"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>LAYER<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>NAME "Installation"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>TYPE POLYGON<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>STATUS DEFAULT<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>DATA "Installation_Area.shp"<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>CLASS<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>NAME 'Installation'<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>OUTLINECOLOR 60 60 60<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>COLOR 255 255 0<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>SYMBOL 0<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > END<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Which returns a simple map when I test it:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > _http://localhost:8080/cgi-bin/mapserv.exe?MAP=/ms4w/apache/htdocs/test/test.map&mode=map_<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > <http://localhost:8080/cgi-bin/mapserv.exe?MAP=/ms4w/apache/htdocs/test/test.map&mode=map><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Now, I've decided to try OpenLayers and this is my code which I borrowed<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > from one of the examples:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > <html xmlns="http://www.w3.org/1999/xhtml"><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><head><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><style type="text/css"><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>#map {<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>width: 800px;<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>height: 475px;<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>border: 1px solid black;<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN></style><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><script src="OpenLayers.js"></script><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><script type="text/javascript"><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>function init(){<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>map = new OpenLayers.Map( 'map' );<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > "http://localhost:8080/cgi-bin/mapserv.exe?MAP=/ms4w/apache/htdocs/test/test.map",<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > {layers: 'Installation'} );<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>map.addLayer(layer);<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN>}<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN></script><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN></head><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><body onload="init()"><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN><div id="map"></div><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><SPAN style="mso-spacerun: yes"> </SPAN></body><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > </html><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > When I run it, I get a tiles which say:<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > msWMSLoadGetMapParams():<SPAN style="mso-spacerun: yes"> </SPAN>WMS server error. Invalid SRS given : SRS must<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > be valid for all requested layers.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Now I looked at the doc and it seems like you can set the projection<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > which I tried, but it still returned the same error.<SPAN style="mso-spacerun: yes"> </SPAN>I'm sure I'm<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > close, but I'm just a little out of my league right now with openlayers.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Any help would be greatly appreciated.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > David.<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > ------------------------------------------------------------------------<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Peek-a-boo FREE Tricks & Treats for You! Get 'em!<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > <http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > ------------------------------------------------------------------------<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> ><o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > _______________________________________________<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Users mailing list<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > Users@openlayers.org<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> > http://openlayers.org/mailman/listinfo/users<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> _______________________________________________<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> Users mailing list<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> Users@openlayers.org<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">> http://openlayers.org/mailman/listinfo/users<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">><o:p> </o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">_______________________________________________<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">Users mailing list<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">Users@openlayers.org<o:p></o:p></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT color=#000000><FONT face="Courier New">http://openlayers.org/mailman/listinfo/users<o:p></o:p></FONT></FONT></P><br /><hr />Help yourself to FREE treats served up daily at the Messenger Café. <a href='http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline' target='_new'>Stop by today!</a></body>
</html>