Funny, it only works for me if I use both:<br> location: new OpenLayers.LonLat(mapPanel.map.getLonLatFromPixel(event.xy)).transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;), new OpenLayers.Projection(&quot;EPSG:900913&quot;)),<br>
 lonlat: mapPanel.map.getLonLatFromPixel(event.xy),<br><br>elshae<br><br><div class="gmail_quote">On Fri, Jan 14, 2011 at 8:48 AM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
you can even simplify this, because with r1.0, GeoExt.Popup has gotten smarter. Just use<br>
<br>
location: e.xy<br>
<br>
Regards,<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
On Jan 14, 2011, at 09:51 , Christian Mayer wrote:<br>
<br>
&gt; Hello Kai,<br>
&gt;<br>
&gt; you should set the property &quot;location&quot; instead of &quot;lonlat&quot; in your popup:<br>
&gt;<br>
&gt;     featureInfo.events.on({<br>
&gt;         getfeatureinfo: function(e) {<br>
&gt;             new GeoExt.Popup({<br>
&gt;                 title: &quot;Feature Info&quot;,<br>
&gt;                 width: 200,<br>
&gt;                 height: 150,<br>
&gt;                 autoScroll: true,<br>
&gt;                 maximizable: true,<br>
&gt;                 map: mappanel.map,<br>
&gt;                 location: mappanel.map.getLonLatFromPixel(e.xy),<br>
&gt;                 html: e.text<br>
&gt;             }).show();<br>
&gt;         }<br>
&gt;     });<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Chris<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Am 13.01.2011 15:59, schrieb Kai Volland:<br>
&gt;&gt; Hello everybody,<br>
&gt;&gt;<br>
&gt;&gt; i tried to fetch some featureinfos from geoserver and display in a popup.<br>
&gt;&gt; I used this code:<br>
&gt;&gt;<br>
&gt;&gt;     // GetFeatureInfo<br>
&gt;&gt;<br>
&gt;&gt;     var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({<br>
&gt;&gt;     url: &#39;<a href="http://sfb806srv.uni-koeln.de:8080/geoserver/wms" target="_blank">http://sfb806srv.uni-koeln.de:8080/geoserver/wms</a>&#39;,<br>
&gt;&gt;     layers:[pfeile],<br>
&gt;&gt;     info_format:&#39;text/plain&#39;,<br>
&gt;&gt;     });<br>
&gt;&gt;<br>
&gt;&gt;     featureInfo.events.on({<br>
&gt;&gt;         getfeatureinfo: function(e) {<br>
&gt;&gt;             new GeoExt.Popup({<br>
&gt;&gt;                 title: &quot;Feature Info&quot;,<br>
&gt;&gt;                 width: 200,<br>
&gt;&gt;                 height: 150,<br>
&gt;&gt;                 autoScroll: true,<br>
&gt;&gt;                 maximizable: true,<br>
&gt;&gt;                 map: mappanel.map,<br>
&gt;&gt;                 lonlat: mappanel.map.getLonLatFromPixel(e.xy),<br>
&gt;&gt;                 html: e.text<br>
&gt;&gt;             }).show();<br>
&gt;&gt;         }<br>
&gt;&gt;     });<br>
&gt;&gt;     mappanel.map.addControl(featureInfo);<br>
&gt;&gt;     featureInfo.activate();<br>
&gt;&gt;<br>
&gt;&gt; A click on the map results in an empty popup and the following errors in Firebug:<br>
&gt;&gt;<br>
&gt;&gt; centerPx is null<br>
&gt;&gt;  this.setPosition(centerPx.....x - dx, centerPx.y + mapBox.y - dy);   Popup.js (Line 244)<br>
&gt;&gt;<br>
&gt;&gt; The GET-Request is also shown in red.<br>
&gt;&gt; Params and Header are ok i think. But Response and Html keep empty.<br>
&gt;&gt;<br>
&gt;&gt; I hope anyone can help me.<br>
&gt;&gt;<br>
&gt;&gt; Kind regards Kai<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://WEB.DE" target="_blank">WEB.DE</a> DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt mit<br>
&gt;&gt; gratis Handy-Flat! <a href="http://produkte.web.de/go/DSL_Doppel_Flatrate/2" target="_blank">http://produkte.web.de/go/DSL_Doppel_Flatrate/2</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
&gt;&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
&gt; <a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@geoext.org">Users@geoext.org</a><br>
<a href="http://www.geoext.org/cgi-bin/mailman/listinfo/users" target="_blank">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>