<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=968284016-01082008>have you considered this:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A
href="http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost">http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost</A></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV><SPAN class=968284016-01082008></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>Arnd<SPAN class=968284016-01082008>
Wippermann</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=968284016-01082008></SPAN></FONT></FONT></FONT><BR> </DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von
</B>lorkyo<BR><B>Gesendet:</B> Freitag, 1. August 2008 17:00<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] WFS can't be shown.
Can any one help me?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>I wrote a page to show wms and wfs, at the same time, but I can't get
the WFS data show. the codes are listed below.It can only show the WMS data , I
exchange the place of "topp:tasmania_water_bodies" and
"topp:tasmania_state_boundaries", then it can only show the
"topp:tasmania_state_boundaries"(WMS). I have check the checkbox of the
layerswitch,and these two layers is the of the same place and have the same SRS,
I have used udig to open them:<BR> <BR>var map, layer;<BR>map = new
OpenLayers.Map('map', {controls:[], 'projection': 'EPSG:4326',
'units':'degrees'}); <BR> OpenLayers.IMAGE_RELOAD_ATTEMPTS =
5;<BR>
<BR> var bounds = new
OpenLayers.Bounds(143.60260815000004,-43.851764249999995,148.71135685000002,-39.370182750000005)<BR>
// setup untiled layer<BR>
untiled = new
OpenLayers.Layer.WMS.Untiled(<BR>
"",
"http://192.168.6.140:8080/geoserver/wms",<BR>
{<BR>
layers:
'topp:tasmania_water_bodies',<BR>
styles:
'',<BR>
height:
'382',<BR>
width:
'800',<BR>
srs:
'EPSG:4326',<BR>
format:
'image/png'<BR>
},<BR>
{maxExtent: bounds, maxResolution: 0.019956049609374915, projection:
"EPSG:4326"}<BR>
);<BR>
untiled.ratio=1;<BR>
untiled.setVisibility(false, false);<BR>
map.addLayer(untiled);<BR> var roads = new
OpenLayers.Layer.WFS(<BR>
"Roads (WFS)", <BR>
"http://192.168.6.140:8080/geoserver/wfs?",<BR>
{
<BR>
layers:
'topp:tasmania_state_boundaries',<BR>
request: 'GetFeature',<BR>
maxfeatures: 100,
visibility:true<BR>
},<BR> {maxExtent: bounds, maxResolution: 0.019956049609374915, projection:
"EPSG:4326"});<BR> map.addControl(new
OpenLayers.ControlPanZoomBar({div:$('nav')}));<BR>
map.addControl(new
OpenLayers.Control.MouseDefaults());<BR>
map.addControl(new
OpenLayers.Control.Scale($('scale')));<BR>
map.addControl(new OpenLayers.Control.MousePosition({element:
$('position')}));<BR>
map.addControl(new
OpenLayers.Control.LayerSwitcher());<BR>
map.addControl(new
OpenLayers.Control.OverviewMap());<BR>
map.zoomToExtent(bounds);<BR>
<BR>
lorkyo<BR></DIV>
<DIV> </DIV><BR><!-- footer --><BR>
<HR>
<FONT style="FONT-SIZE: 12px; LINE-HEIGHT: 15px">22元超值饭面,8.5折纯珍比萨,必胜宅急送</FONT><A
style="FONT-SIZE: 12px; COLOR: blue; LINE-HEIGHT: 15px; TEXT-DECORATION: underline"
href="http://popme.163.com/link/004584_0708_6957.html">网上点餐优惠多</A></BODY></HTML>