<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
I forgot image....<br>
<br>
<br>
<div class="moz-forward-container"><br>
<br>
-------- Mensagem Original --------
<table class="moz-email-headers-table" border="0"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Assunto:
</th>
<td>my vector data don't show up - wfs</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Data:
</th>
<td>Wed, 04 Jul 2012 09:56:54 +0100</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">De: </th>
<td>Pedro Costa <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:pedrocostaarma@sapo.pt"><pedrocostaarma@sapo.pt></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Para:
</th>
<td><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Hi,
I'm trying to add vector data to my map from geoserver but data don't
show up.
I tried like that:
var wfs = new OpenLayers.Layer.Vector("Equipamentos_WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://localhost:8080/geoserver/testes/wfs">"http://localhost:8080/geoserver/testes/wfs"</a>,
featurePrefix:"testes",
featureType: "testes:equipamentos",
featureNS: "namespacetestes.pt",
srsName: "EPSG:900913",
geometryName: "the_geom",
version: "1.0.0"
})
});
map.addLayer(wfs);
I'm using only data from localhost (my computer) so i don't need proxy
right?
Using firebug I can see that the request is made, but returns nothing
(image attached).
Can anybody help me?
Thanks
</pre>
<br>
<br>
</div>
<br>
<br>
<br>
</div>
<br>
</body>
</html>