[Users] RS: Error with popup
Vidal, Antoni
antoni.vidal at icc.cat
Fri May 13 21:31:27 CEST 2011
map var is defined in layout.js, and the code belongs to another js file, but it seems is still referenced.
Toni
-----Missatge original-----
De: Joaquin [mailto:jcarrascog at gmail.com]
Enviat el: dv. 13/05/2011 16:14
Per a: Vidal, Antoni
A/c: <users at geoext.org>
Tema: Re: [Users] Error with popup
Where is the variable map defined and created?
El 13/05/2011, a las 14:10, "Vidal, Antoni" <antoni.vidal at icc.cat> escribió:
> Hi list,
>
>
>
> I've followed popup example http://api.geoext.org/1.0/examples/popup-more.html but I get an error:
>
>
>
> this.feature is null
>
> <image001.png>var centerLonLat = this.feature.geometry.getBounds().getCenterLonLat();
>
>
>
> Popup.js line 212
>
>
>
> My simple code:
>
>
>
> var popup = new GeoExt.Popup({
>
> title: "My Popup",
>
> location: px,
>
> width: 200,
>
> map: map,
>
> html: "<div>Popup content</div>",
>
> collapsible: true
>
> });
>
>
>
> popup.show();
>
>
>
> If comment popup.show(); error disappears.
>
>
>
> Any idea?
>
>
>
> Thanks in advance.
>
>
>
> Antoni Vidal
>
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat
>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110513/480288b6/attachment.htm
More information about the Users
mailing list