Thanks for the reply.... I looked at the example and it's not what I want...At least I don't think so
I have a set features (points) that are displayed as a WFS layer. What I want is, when you click on a feature, you get a pop box with data (from my database) about that feature. Can this be done? Or you can only do pop-up boxes with a WMS layer? Thanks Chris On Wed, Sep 1, 2010 at 11:03 AM, Ian Turton <[email protected]> wrote: > On Wed, Sep 1, 2010 at 12:09 AM, Joe Public <[email protected]> wrote: > > > > Hey OL.... > > I'm trying display the data associated with a feature (point) in a vector > > (WFS) layer using the script below > > When I click on the feature I get the message: > > No QUERY_LAYERS has been requested, or no queriable layer in the request > > anyways > > > > You can't use getFeatureInfo against a WFS as it is a WMS request. You > would need to use a GetFeature request against the WFS. Look at the > demo requests provided by GeoServer to see the differences. Or > > http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeature-wfs.html > for a working OpenLayers example. > > Ian > > -- > Ian Turton >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
