[OpenLayers-Users] ERROR: WMSGetFeatureInfo is not a constructor.

Micho Gar michogar at gmail.com
Thu May 7 11:22:28 EDT 2009


Hi all, I am working with the Openlayers Feature Info example, I copy the
example's code but dont work on my app, get this error:

"Error: OpenLayers.Control.WMSGetFeatureInfo is not a constructor
Archivo de origen: http://localhost:8080/geoserver/....
Línea: 159"

The code is the same that in examples, with my layers and server:

infoControls = {
            click: new OpenLayers.Control.WMSGetFeatureInfo({
                url: 'http://localhost:8080/geoserver/wms',
                title: 'Identify features by clicking',
                layers: [Instancias],
                queryVisible: true
            }),
            hover : new OpenLayers.Control.WMSGetFeatureInfo({
                url: 'http://localhost:8080/geoserver/wms',
                title: 'Identify features by clicking',
                layers: [Instancias],
                hover: true,
                // defining a custom format options here
                formatOptions: {
                    typeName: 'instancias',
                    featureNS: 'http://www.openplans.org/topp'
                },
                queryVisible: true
            })
        }

Do you know what happens??.


Thanks.



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

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

El dia a dia:
http://twitter.com/michogar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090507/795d17bb/attachment.html


More information about the Users mailing list