[OpenLayers-Users] Format WMSGetFeatureInfo response
Micho Gar
michogar at gmail.com
Thu Jul 2 13:32:02 EDT 2009
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 <michogar at gmail.com>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090702/9d537410/attachment.html
More information about the Users
mailing list