The problem is the format wich my server return the data. Now I put in the
options infoFormat='text/plain'.

  infoControls = {
            click: new OpenLayers.Control.
>
> WMSGetFeatureInfo({
>                 url: 'http://localhost:8080/geoserver/wms',
>                 title: 'Identifica las features por click',
>                 maxFeatures: 10,



>
>                 layers: [Instancias, Servicios],
>                 queryVisible: true
>             }),
>             hover: new OpenLayers.Control.WMSGetFeatureInfo({
>                 url: 'http://localhost:8080/geoserver/wms',
>                 title: 'Identifica las features por hover',
>                 layers: [Instancias, Servicios],
>                 hover: true,
>                 handlerOptions: {'hover':{delay:500}},
>                 maxFeatures: 10,
>                 queryVisible: true
>             })



2009/7/2 Micho Gar <[email protected]>

> Hi all,
>
> I have a wmsgetfeatureinfo control in my map. This is the code I use to
> make it:
>
>     infoControls = {
>             click: new OpenLayers.Control.WMSGetFeatureInfo({
>                 url: 'http://localhost:8080/geoserver/wms',
>                 title: 'Identifica las features por click',
>                 maxFeatures: 10,
>                 layers: [Instancias, Servicios],
>                 queryVisible: true
>             }),
>             hover: new OpenLayers.Control.WMSGetFeatureInfo({
>                 url: 'http://localhost:8080/geoserver/wms',
>                 title: 'Identifica las features por hover',
>                 layers: [Instancias, Servicios],
>                 hover: true,
>                 handlerOptions: {'hover':{delay:500}},
>                 maxFeatures: 10,
>                 queryVisible: true
>             })
>
> I register the event with:
>
>     for (var i in infoControls) {
>         infoControls[i].events.register("getfeatureinfo", this, showInfo);
>         map.addControl(infoControls[i]);
>     }
>
> 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.
>
> Thanks to all.
>
>
>
> --
> # michogar
> # Analista Programador SIG
> # GNU/Linux Counter 462666
>
> Una visión personal:
> http://michogar.blogspot.com
>
> El día a día:
> http://twitter.com/michogar
>
>
>


-- 
# michogar
# Analista Programador SIG
# GNU/Linux Counter 462666

Una visión personal:
http://michogar.blogspot.com

El día a día:
http://twitter.com/michogar
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to