[OpenLayers-Users] WFS
pericoltoxic
grigoregeorge631980 at yahoo.co.uk
Wed Nov 11 15:19:41 EST 2009
Sige wrote:
>
> http://openlayers.org/dev/examples/wfs-protocol.html
>
>
> pericoltoxic wrote:
>>
>> What is the steps to render topp:tasmania_roads with WFS using vector
>> (OpenLayers.Layer.Vector)?
>>
>
>
Thank for your answer, but i have a problem with the example.
I changed this code:
var layer = new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://demo.opengeo.org/geoserver/wfs",
featureType: "tasmania_roads",
featureNS: "http://www.openplans.org/topp"
})
});
with my code:
var layer = new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhost:8080/geoserver/wfs",
featureType: "tasmania_roads",
featureNS: "http://www.openplans.org/topp"
})
});
I read tasmania_roads from my GeoServer( localhost:8080 ), but the
tasmania_roads not appear. Where is the mistake?
--
View this message in context: http://n2.nabble.com/WFS-tp3986535p3988674.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list