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

Christopher Schmidt crschmidt at metacarta.com
Thu May 7 12:44:09 EDT 2009


On Thu, May 07, 2009 at 05:22:28PM +0200, Micho Gar wrote:
> 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"

You're not using OL 2.8.

> 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

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list