[OpenLayers-Users] problem with WFS GetFeature

Andreas Hocevar ahocevar at opengeo.org
Wed Nov 25 13:20:38 EST 2009


pablo lopez wrote:
> Thanks Andreas, I've just tried your suggestion and it didn't work. 
> I'm now taking a look at the gml returned by mapserver to see if I 
> need to specify more parameters.
> On the other hand, I was looking at the highlight feature code in 
> http://trac.openlayers.org/wiki/Highlighting, and I wonder if there is 
> a way to control the highlighting with mouse clicks instead of filters.
> Any suggestions on this?

This is only recommended if you have very few features. The prerequisite 
is to load the layer as vector layer, not from WMS.

But back to the original problem. If you provide a sample XML that your 
server returns, it will be easier to see what is wrong.

Regards,
Andreas.


> Regards,
> Pablo
>
> On Wed, Nov 25, 2009 at 1:31 AM, Andreas Hocevar <ahocevar at opengeo.org 
> <mailto:ahocevar at opengeo.org>> wrote:
>
>     Hi,
>
>     can you please try the following and report back if it works:
>
>
>     pablo lopez wrote:
>
>                    control = new OpenLayers.Control.GetFeature({
>                        protocol:
>         OpenLayers.Protocol.WFS.fromWMSLayer(layer),
>
>
>     Instead, use
>
>                   protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer, {
>                       featurePrefix: "feature"
>                   }),
>
>     That's the only idea I have.
>
>     Regards,
>     Andreas.
>
>     -- 
>     Andreas Hocevar
>     OpenGeo - http://opengeo.org/
>     Expert service straight from the developers.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list