Hello,<div><br></div><div>I am trying to overlay a shapefile polygon on top of an Open Streetmap or google layer.  However, it only shows up when zoomed out and disappears when zoomed in to the map. Any ideas why this would be happening? The shapefile is being served by gesoserver and overlays correctly at all zoom levels on another WMS layer eg </div>

<div>OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;, &quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0" target="_blank">http://vmap0.tiles.osgeo.org/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );</div><div><br></div>
<div><div>I have only just started using openlayers so there may be something I am missing. If this is not possible then are there any layers in the wild which have city names on them (that&#39;s all I need really).  Sample code below:</div>

<div><br></div><div><div>                var map = new OpenLayers.Map(&#39;map&#39;);</div><div><span style="white-space:pre-wrap">        </span>        var mapLayer = new OpenLayers.Layer.Google();</div><div>
<span style="white-space:pre-wrap">        </span>        //var mapLayer = new OpenLayers.Layer.WMS( &quot;OpenLayers WMS&quot;,</div><div><span style="white-space:pre-wrap">        </span>        //    &quot;<a href="http://vmap0.tiles.osgeo.org/wms/vmap0" target="_blank">http://vmap0.tiles.osgeo.org/wms/vmap0</a>&quot;, {layers: &#39;basic&#39;} );</div>

<div><br></div><div><span style="white-space:pre-wrap">                        </span>var roads = new OpenLayers.Layer.WFS(</div><div><span style="white-space:pre-wrap">        </span>                &quot;Roads&quot;, </div>
<div><span style="white-space:pre-wrap">        </span>                &quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;,</div><div><span style="white-space:pre-wrap">        </span>                {typename: &#39;topp:tasmania_roads&#39;},</div>

<div><span style="white-space:pre-wrap">        </span>                {</div><div><span style="white-space:pre-wrap">        </span>                    typename: &#39;tasmania_roads&#39;, </div><div>
<span style="white-space:pre-wrap">        </span>                    featureNS: &#39;<a href="http://www.openplans.org/topp" target="_blank">http://www.openplans.org/topp</a>&#39;, </div><div><span style="white-space:pre-wrap">        </span>                    extractAttributes: false</div>

<div><span style="white-space:pre-wrap">        </span>                }</div><div><span style="white-space:pre-wrap">        </span>            );</div><div><span style="white-space:pre-wrap">        </span>        map.addLayers([mapLayer, roads]);</div>

</div><div><br></div><div>Cheers,</div><div><br></div><div>Ian</div><div><br></div>-- <br>Ian Dunlop<br>myGrid Team<br>School of Computer Science<br>University of Manchester<br>
</div>