On Sat, Aug 28, 2010 at 8:35 AM, Alexander Petkov <green...@gmail.com> wrote: > Hi: > I am trying to follow the example for the GetFeature control shown here: > http://openlayers.org/dev/examples/getfeature-wfs.html > > Problem code is here: > http://wfas.smoke-fire.us/testapp/examples/getfeature-wfs.html > > Basically, I cannot get an indication that the events for the > GetFeature control are registering. > The alert statements are to indicate that the events indeed occur. > When I modify the events for the orig example in Firebug, the alerts > indeed pop up. > > Can another set of eyes spot why the events for the GetFeature control > in my code do not register? > I see that I get a response from the server after a POST request, so > that's good... The reason why I don't see the alerts from supposedly > registered events is eluding me... > > Ultimately I am trying to extract the WKT for any selected feature. > > Thanks in advance, > Alex >
Hello again: I managed to successfully register events for a GetFeature control by following the information in this post: http://osgeo-org.1803224.n2.nabble.com/WFS-GetFeature-with-Mapserver-tp4748857p5425135.html In particular, I followed the advice on configuring the protocol for the GetFeature control--the featureType, featurePrefix, and geometryName can be seen in the returned XML response from Mapserver. May I propose that Attila's solution be included in the GetFeature example(s)? The advice is solid, and the detail about patching Mapserer is crucial but difficult to figure out (my Mapserver instance was already patched). Alex _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users