[Users] Error with popup

Vidal, Antoni antoni.vidal at icc.cat
Fri May 13 14:10:02 CEST 2011


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

 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 <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392> 
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/> 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110513/ae8a41ae/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 174 bytes
Desc: image001.png
Url : http://www.geoext.org/pipermail/users/attachments/20110513/ae8a41ae/attachment.png 


More information about the Users mailing list