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:[email protected]] Enviat el: dv. 13/05/2011 16:14 Per a: Vidal, Antoni A/c: <[email protected]> Tema: Re: [Users] Error with popup Where is the variable map defined and created? El 13/05/2011, a las 14:10, "Vidal, Antoni" <[email protected]> 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 > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
