<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> </DIV>
<DIV>Just include them in the layers parameter with commas between in your WMS call eg:</DIV>
<DIV> </DIV>
<DIV>var topowms = new OpenLayers.Layer.WMS( "Topos",<BR> "<A href="http://10.64.20.120/cgi-bin/gsswms.exe">http://10.64.20.120/cgi-bin/gsswms.exe</A>?",<BR> {layers: ['nzislands','nznoaa','nz1mtm','nz250ktm','nz50ktm','linz_orthos'], format: "image/png"},<BR> {singleTile: true, minResolution: 1000} );</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Robert<BR><BR>>>> MeLv1n wAuRaN <melvinnesta@gmail.com> 6/03/2009 12:37 p.m. >>><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><html><BR><head><BR><title>OpenLayers Example</title><BR><script src="<A href="http://openlayers.org/api/OpenLayers.js">http://openlayers.org/api/OpenLayers.js</A>"></script><BR></head><BR><body><BR><div style="width:100%; height:100%" id="map"></div><BR><script defer="defer" type="text/javascript"><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></script><BR><BR></body><BR></html><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 contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this 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>