[OpenLayers-Users] Multiple FeatureType in WFS Protocol
Gery .
gamejihou at hotmail.com
Tue May 14 03:44:54 PDT 2013
are you calling your features from a database? if so, it'd be better if you make one table with all your tables.
__________________________________________________________________________________________
Piensa en el medio ambiente - mantenlo en la pantalla. NO lo imprimas si NO es necesario.
Think green - keep it on the screen. Do NOT print if it is NOT necessary.
Denken Sie an die Umwelt - bewahren Sie es auf dem Bildschirm. Drucken Sie es NICHT, wenn es NICHT notwendig ist.
> Date: Tue, 14 May 2013 03:42:03 -0700
> From: shadin__a at hotmail.com
> To: openlayers-users at lists.osgeo.org
> Subject: [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-tp5053116.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> 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/20130514/0ec11322/attachment.html>
More information about the Users
mailing list