On Thursday, May 7, 2009, Micho Gar <[email protected]> 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

Most probably you're not on the right OL version? What OL version are you using?

Cheers,

> 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
>
>
>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to