[OpenLayers-Users] Probem on OpenLayers WFS

Alextave andrea.alri90 at gmail.com
Tue Aug 20 06:09:13 PDT 2013


I am pretty sure that this works:

  var map = new OpenLayers.Map('map'); 

  var wms = new OpenLayers.Layer.WMS ( 
    "OpenLayers WMS", 
    "http://vmap0.tiles.osgeo.org/wms/vmap0", 
    {layers: 'basic'} 
  );

  var WFSgeoDB=new OpenLayers.Layer.Vector("WFS", { 
    strategies: [new OpenLayers.Strategy.BBOX()], 
    protocol: new OpenLayers.Protocol.WFS.v1_1_0({ 
      url: "http://localhost:8080/services/WFSgeoDB", 
      featureType: "streets",
      featureNS: "http://www.deegree.org/app",
      featurePrefix: "app",
      geometryName: "road"
    }) 
  });
  
  map.addLayers([wms, WFSgeoDB]);
  map.zoomToMaxExtent(); 

I was so stupid, I forgot geometryName and featureNS.

Thanks so much for the help
Andrea



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Probem-on-OpenLayers-WFS-tp5072697p5073371.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list