The problem is the format wich my server return the data. Now I put in the options infoFormat='text/plain'.<br><br> infoControls = {<br> click: new OpenLayers.Control.<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
WMSGetFeatureInfo({<br> url: '<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>', <br>
title: 'Identifica las features por click',<br> maxFeatures: 10,</blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> layers: [Instancias, Servicios],<br> queryVisible: true<br> }),<br> hover: new OpenLayers.Control.WMSGetFeatureInfo({<br>
url: '<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>', <br> title: 'Identifica las features por hover',<br> layers: [Instancias, Servicios],<br>
hover: true,<br> handlerOptions: {'hover':{delay:500}},<br> maxFeatures: 10,<br> queryVisible: true<br> })</blockquote><br><br><div class="gmail_quote">
2009/7/2 Micho Gar <span dir="ltr"><<a href="mailto:michogar@gmail.com">michogar@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all, <br><br>I have a wmsgetfeatureinfo control in my map. This is the code I use to make it:<br><br> infoControls = {<br> click: new OpenLayers.Control.WMSGetFeatureInfo({<br> url: '<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>', <br>
title: 'Identifica las features por click',<br> maxFeatures: 10,<br> layers: [Instancias, Servicios],<br> queryVisible: true<br> }),<br> hover: new OpenLayers.Control.WMSGetFeatureInfo({<br>
url: '<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>', <br> title: 'Identifica las features por hover',<br> layers: [Instancias, Servicios],<br>
hover: true,<br> handlerOptions: {'hover':{delay:500}},<br> maxFeatures: 10,<br> queryVisible: true<br> })<br><br>I register the event with:<br>
<br> for (var i in infoControls) { <br> infoControls[i].events.register("getfeatureinfo", this, showInfo);<br> map.addControl(infoControls[i]); <br> }<br><br>when I take the response in the showInfo method, I only can access to the text, not to the xml. He only have text, not features and is impossible for me format the response using a format.wmsgetfeatureinfo.<br>
<br>Thanks to all.<br><br><br clear="all"><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br><br>Una visión personal:<br><a href="http://michogar.blogspot.com" target="_blank">http://michogar.blogspot.com</a><br>
<br>El día a día: <br><a href="http://twitter.com/michogar" target="_blank">http://twitter.com/michogar</a><br><br><br>
</blockquote></div><br><br clear="all"><br>-- <br># michogar<br># Analista Programador SIG<br># GNU/Linux Counter 462666<br><br>Una visión personal:<br><a href="http://michogar.blogspot.com">http://michogar.blogspot.com</a><br>
<br>El día a día: <br><a href="http://twitter.com/michogar">http://twitter.com/michogar</a><br><br><br>