Hi  list<br><br>I am trying to load  WMS and WFS overlay from a remote site.  I tried many ways but faild it would be great if some one show me how to load these layers from  the remote site.<br><br><a href="http://ukypssgis.ca.uky.edu/landusenrcs_V3/testing/007/opelayers-wms1.html">Here is the link</a>   <br>
<br><br>Direct urls are working<br><br><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;" id="internal-source-marker_0.007740399847825374"> WMS</span> request<br>
<a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms?REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=800&amp;HEIGHT=600&amp;FORMAT=image/gif&amp;LAYERS=MapunitPoly&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441"><span style="font-size:11pt;font-family:Arial;color:#000099;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;">http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms?REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=800&amp;HEIGHT=600&amp;FORMAT=image/gif&amp;LAYERS=MapunitPoly&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441</span></a><span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"></span><br>
<span style="font-size:11pt;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><br><br>WFS request<br></span><a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83Geographic.wfs?SERVICE=WFS&amp;request=GetFeature&amp;version=1.0.0&amp;typeName=Mapunitpoly&amp;SRS=EPSG:4326&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441"><span style="font-size:11pt;font-family:Arial;color:#000099;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline;">http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83Geographic.wfs?SERVICE=WFS&amp;request=GetFeature&amp;version=1.0.0&amp;typeName=Mapunitpoly&amp;SRS=EPSG:4326&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441</span></a><br>
<br> <br>This is the code  I have tried<br><br>        var lon = 5;<br>        var lat = 40;<br>        var zoom = 5;<br>        var map, layer;<br><br>        function init(){<br>            map = new OpenLayers.Map( &#39;map&#39; );<br>
            <br>            //layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>            //        &quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0">http://vmap0.tiles.osgeo.org/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );&lt;br/&gt;<br>
var wmsurl=&quot;<a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms?REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=800&amp;HEIGHT=600&amp;FORMAT=image/gif&amp;LAYERS=MapunitPoly&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441">http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms?REQUEST=GetMap&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=800&amp;HEIGHT=600&amp;FORMAT=image/gif&amp;LAYERS=MapunitPoly&amp;BBOX=-84.513702,37.993728,-84.449329,38.044441</a>&quot;<br>
<br>            <br>            layer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,<br>                    &quot;<a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms">http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms</a>&quot;, {layers: &quot;MapunitPoly&quot;<br>
                    //request :&quot;GetMap&quot;,<br>                    //version:&quot;1.1.1&quot;,<br>                    //service:&quot;WMS&quot;<br>                    //TRANSPARENT:&quot;TRUE&quot;,<br>                    //format:&quot;image/gif&quot;,<br>
                    //bbox:&quot;-84.513702,37.993728,-84.449329,38.044441&quot;<br>                    //srs:&quot;EPSG:4326&quot;<br><br>                    } );<br><br><br><br><br>var wfslayer= = new OpenLayers.Layer.Vector(&quot;WFS&quot;, {<br>
    strategies: [new OpenLayers.Strategy.Fixed()],<br>    protocol: new OpenLayers.Protocol.WFS({<br>              url:  &quot;<a href="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83Geographic.wfs">http://sdmdataaccess.nrcs.usda.gov/Spatial/SDMNAD83Geographic.wfs</a>&quot;,<br>
              featureType: &quot;MapunitPoly&quot;,<br>              //featureNS: &quot;<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>&quot;,<br>             srsName: &quot;EPSG:42326&quot;,<br>              version: &quot;1.0.0&quot;                    <br>
              })<br>});<br>                    map.addLayer(layer,wfslayer);<br><br>            map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);<br>            map.addControl( new OpenLayers.Control.LayerSwitcher() );<br>
        }<br>        <br><br>It would be great if some one can show me the correct syntax.<br><br><br>Surendran<br><br><br>