Hi,<br><br>does anybody know why requested wfs features are not displayed after removing and re-adding them by recalling the function? They only appear after changing the zoom level.<br><br>take a look at our code:<br><br>
           function createWFS(response){   <br> ...<br>            <br>                 var hotel = new OpenLayers.Layer.WFS( &quot;Hotels&quot;,<br>                     &quot;<a href="http://localhost/cgi-bin/mapserv?map=/home/test.map">http://localhost/cgi-bin/mapserv?map=/home/test.map</a>&quot;,<br>
                     {typename: &#39;hotel&#39;},{extractAttributes:true, displayInLayerSwitcher:true, <br>                     projection:new OpenLayers.Projection(&quot;EPSG:4326&quot;), styleMap: myStyleHotel}); <br>                          <br>
                  hotel.events.on({<br>                     &quot;featureselected&quot;: onFeatureSelect,<br>                     &quot;featureunselected&quot;: onPopupClose<br>                  });          <br>                    <br>
                   // alert(map.getLayersByName(&quot;Hotels&quot;));<br>                    <br>                  if (map.getLayersByName(&quot;Hotels&quot;).length!=0){<br>                     map.removeLayer(hotel,false);<br>
                     }  <br>                                  <br>                  map.addLayer(hotel); <br><br>                  selectControl = new OpenLayers.Control.SelectFeature([hotel]); <br>                        map.addControl(selectControl);<br>
                        selectControl.activate();   <br>                         <br>                        <br>            }<br><br>Thank you!<br>regards <br><br><br><br>