[Users] Error with popup

Joaquin jcarrascog at gmail.com
Fri May 13 16:14:11 CEST 2011


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/fa1d6f8b/attachment.htm 


More information about the Users mailing list