Hi, As far as I know it's not possible with OpenLayers. For Version 2.9 I have applied a patch to get multiple featuretypes in one wfs layer. Perhaps it's possible in the same way for OL 2.12.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL29/WFS_with_multiple_featureTyp es.asp Arnd -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Shadin Gesendet: Dienstag, 14. Mai 2013 12:42 An: [email protected] Betreff: [OpenLayers-Users] Multiple FeatureType in WFS Protocol I would like to pass multiple featureTypes to WFS protocol in order to accomplish a search feature in my app. the idea worked just fine with one featureType, but now I need to add another one to expand my search scope. Here is what I did: var featureTypes = ["Layer_1", "Layer_2"]; var wfsProtocol = new OpenLayers.Protocol.WFS.v1_1_0({ url: URL, featureType: featureTypes, featureNS: "http://mapmap.org", srsName: "EPSG:3857", version: "1.1.0", extractAttributes: true, isBaseLayer: false, visibility: true }); wfsProtocol.read({ filter: filter, callback: processTheQuery, scope: [new OpenLayers.Strategy.Fixed({preload: true})], }) But still didn't work. Any idea? -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Multiple-FeatureType-in-WFS-Protocol-tp5 053116.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
