<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY TEXT="#1a1a1a" LINK="#0000ff" BGCOLOR="#ffffff" BACKGROUND="file:///home/ajuarez">
Hi list,<BR>
<BR>
I have my layers in geoserver and I want show a shape in format WFS, but I did't make that the map is showing correctly, never showme the shape, only a map empty.<BR>
<BR>
this ist my code<BR>
<BR>
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;DTD/xhtml1-strict.dtd&quot;&gt;<BR>
&lt;html xmlns=&quot;<A HREF="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>&quot;&gt;<BR>
&lt;head&gt;<BR>
        &lt;title&gt;1a&lt;/title&gt;<BR>
&lt;/head&gt;<BR>
&lt;script src=&quot;http://172.16.23.21:8080/geoserver/openlayers/OpenLayers.js&quot; type=&quot;text/javascript&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<BR>
<BR>
&lt;body BGCOLOR=#CCCC98 onload=&quot;load();&quot;&gt;<BR>
<BR>
&lt;div id=&quot;map&quot; style=&quot;width: 800px; height: 500px; top:-3px; left:-350px; border: 9px solid #EBE9D4;&quot;&gt;&lt;/div&gt;<BR>
&lt;script type=&quot;text/javascript&quot;&gt;<BR>
function load(map) {<BR>
        format = 'image/png';<BR>
        var options = {<BR>
                //maxExtent: new OpenLayers.Bounds(-100.68433823837833, 19.92869814379752,-98.97019078497003, 21.750688917229123),<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; controls:[<BR>
                        new OpenLayers.Control.Navigation(),<BR>
                        new OpenLayers.Control.PanZoomBar(),<BR>
                        new OpenLayers.Control.LayerSwitcher({'ascending':false}),<BR>
                        new OpenLayers.Control.ScaleLine(),<BR>
                        new OpenLayers.Control.MousePosition(),<BR>
                        new OpenLayers.Control.KeyboardDefaults() ],<BR>
                numZoomLevels: 31,units: 'm' };<BR>
        var map = new OpenLayers.Map(&quot;map&quot;, options);<BR>
        <BR>
        layer2 = new OpenLayers.Layer.WFS( <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;Limites&quot;, &quot;<A HREF="http://172.16.23.21:8080/geoserver/wfs?">http://172.16.23.21:8080/geoserver/wfs?</A>&quot;,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {typename: &quot;geq:LMA&quot;, maxfeatures: 50},<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { featureClass: OpenLayers.Feature.WFS});<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addLayer(layer2);<BR>
                <BR>
//map.zoomToMaxExtent();<BR>
<BR>
        map.setCenter(new OpenLayers.LonLat(-99.854736328125,20.80875529543977), 9); <BR>
}<BR>
&lt;/script&gt;<BR>
<BR>
&lt;/body&gt;<BR>
&lt;/html&gt;<BR>
<BR>
thanks
</BODY>
</HTML>