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>