<p>If you want features, you need a WMS that supports GML as output format for GetFeatureInfo. For WMS 1.1.1, the format is &quot;application/vnd.ogc.gml&quot;. It has to be provided as the infoFormat options. </p>
<p>Andreas. </p>
<div class="gmail_quote">On Sep 18, 2011 11:40 AM, &quot;juhulian&quot; &lt;<a href="mailto:hansfux1@web.de">hansfux1@web.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
I&#39;m using the standard example for a getfeatureinfo popup and now I want to<br>
use some of the attribute data of the feature that was clicked, but the<br>
event.features array is just empty when I try the alert...<br>
<br>
 info = new OpenLayers.Control.WMSGetFeatureInfo({<br>
            url: &#39;<a href="http://localhost:8080/geoserver/wms/" target="_blank">http://localhost:8080/geoserver/wms/</a>&#39;,<br>
            title: &#39;Identify features by clicking&#39;,<br>
            queryVisible: true,<br>
            eventListeners: {<br>
            getfeatureinfo: function(event) {<br>
                    alert(event.features.length);<br>
                    map.addPopup(new OpenLayers.Popup.FramedCloud(<br>
                        &quot;chicken&quot;, //id<br>
                        map.getLonLatFromPixel(event.xy), //koord auf dem<br>
event<br>
                        null, //contentsize<br>
                        event.text, //contentHtml<br>
                        null, //anchor<br>
                        true //closeBox<br>
                    ),true);<br>
                }<br>
            }<br>
        });<br>
<br>
any help is appreciated,<br>
julian<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/features-length-is-0-beginner-question-tp6805453p6805453.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/features-length-is-0-beginner-question-tp6805453p6805453.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div>