Hi,

 This question is more related to OpenLayers.

Use the WFS protocol instead in your vector layer, see the source of this example (1).

Regards,

Alexandre

(1) http://openlayers.org/dev/examples/wfs-protocol.html

YOUNESS ELMEDRAOUI wrote:
Hi,

plz, how can i use BBox strategy with a wfs layer défined in a mapfile?
i tested this script but it does not work: wfs = new OpenLayers.Layer.Vector("WFS",
     {
          strategies: [
new OpenLayers.Strategy.BBOX() ],
          protocol: new OpenLayers.Protocol.HTTP({
url: "http://localhost:81/cgi-bin/mapserv.exe?map=C:/OLWebSite/App_Data/olvbmapfileOracleWFS.map&";,
               params: {
                    format: "WFS",
                    service: "WFS",
                    request: "GetFeature",
                    srs: "EPSG:27563",
                    VERSION : "1.0.0",
                    typename : 'EAU_TRONCON'
               },
               format: new OpenLayers.Format.GML()
          })
     },
     {
          extractAttributes:true,
          isBaseLayer:false,
displayInLayerSwitcher: true }); can any one help me plz?

---------------------
Youness ELMEDRAOUI
Les informations figurant sur cet e-mail ont un caractère strictement confidentiel et sont exclusivement adressées au destinataire mentionné ci-dessus.Tout usage, reproduction ou divulgation de cet e-mail est strictement interdit si vous n'en êtes pas le destinataire.Dans ce cas, veuillez nous en avertir immédiatement par la même voie et détruire l'original. Merci
------------------------------------------------------------------------

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to