<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV>Hi Melvin</DIV>
<DIV>&nbsp;</DIV>
<DIV>Just include them in the layers parameter with commas between in your WMS call eg:</DIV>
<DIV>&nbsp;</DIV>
<DIV>var topowms = new OpenLayers.Layer.WMS( "Topos",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "<A href="http://10.64.20.120/cgi-bin/gsswms.exe">http://10.64.20.120/cgi-bin/gsswms.exe</A>?",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {layers: ['nzislands','nznoaa','nz1mtm','nz250ktm','nz50ktm','linz_orthos'], format: "image/png"},<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {singleTile: true, minResolution: 1000} );</DIV>
<DIV>&nbsp;</DIV>
<DIV>Cheers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; MeLv1n wAuRaN &lt;melvinnesta@gmail.com&gt; 6/03/2009 12:37 p.m. &gt;&gt;&gt;<BR>hi all,<BR><BR>how do you add an overlay layer to openlayers? i have 7 ESRI shapefiles (POINT) that i want to display. So far i only get examples on google map layers, but i don't see examples on how to add more than 1 non-base layers in a shapefile format. Below is my simple code:<BR><BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;title&gt;OpenLayers Example&lt;/title&gt;<BR>&lt;script src="<A href="http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</A>"&gt;&lt;/script&gt;<BR>&lt;/head&gt;<BR>&lt;body&gt;<BR>&lt;div style="width:100%; height:100%" id="map"&gt;&lt;/div&gt;<BR>&lt;script defer="defer" type="text/javascript"&gt;<BR>var map = new OpenLayers.Map('map');<BR>var wms = new OpenLayers.Layer.WMS( "Background Layer",<BR>"<A href="http://localhost/cgi-bin/mapserv.exe">http://localhost/cgi-bin/mapserv.exe</A>", {map: 'C:\ms4w\Skripsi\coba.map'},<BR>{isBaseLayer: true} );<BR>map.addLayer(wms);<BR>map.zoomToMaxExtent();<BR>&lt;/script&gt;<BR><BR>&lt;/body&gt;<BR>&lt;/html&gt;<BR><BR><BR><BR>Cheers,<BR>Melvin<BR><BR><BR></DIV><FONT style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A href="https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==">here</A> to report this email as spam.</FONT></P></FONT><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc.  </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>