[OpenLayers-Users] Fwd: my vector data don't show up - wfs

Pedro Costa pedrocostaarma at sapo.pt
Wed Jul 4 02:27:43 PDT 2012


Hi Tobias,

This(image attached)?





>
> Em 04-07-2012 10:21, Tobias Reinicke escreveu:
>> If you expand that "options.wfs" in the firebug console, what does 
>> the "response" tab have in it?
>>
>>
>>
>> On 4 July 2012 10:09, Pedro Costa <pedrocostaarma at sapo.pt 
>> <mailto:pedrocostaarma at sapo.pt>> wrote:
>>
>>
>>
>>     I forgot image....
>>
>>
>>
>>
>>     -------- Mensagem Original --------
>>     Assunto: 	my vector data don't show up - wfs
>>     Data: 	Wed, 04 Jul 2012 09:56:54 +0100
>>     De: 	Pedro Costa <pedrocostaarma at sapo.pt>
>>     <mailto:pedrocostaarma at sapo.pt>
>>     Para: 	openlayers-users at lists.osgeo.org
>>     <mailto:openlayers-users at lists.osgeo.org>
>>
>>
>>
>>     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:"http://localhost:8080/geoserver/testes/wfs"  <http://localhost:8080/geoserver/testes/wfs>,
>>                  featurePrefix:"testes",
>>                  featureType: "testes:equipamentos",
>>                  featureNS: "namespacetestes.pt  <http://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
>>
>>
>>
>>
>>
>>
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.osgeo.org <mailto:Users at lists.osgeo.org>
>>     http://lists.osgeo.org/mailman/listinfo/openlayers-users
>>
>>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120704/564a229b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: request.png
Type: image/png
Size: 24242 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120704/564a229b/attachment-0001.png>


More information about the Users mailing list