<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Thanks Andreas,</span></div><div><span><br></span></div><div><span>The popup works fine now that i´ve updated to geoext 1.1</span></div><div><span><br></span></div><div>The code I am using is taken from the examples <a href="http://api.geoext.org/1.1/examples/tree.html" style="font-size: 10pt; ">http://api.geoext.org/1.1/examples/tree.html</a>.</div><div><br></div><div>1 Question remains though...</div><div><br></div><div>Although the first node is NOT checked on starting the application, the popup is still activated for the first layer. Why is the getFeatureInfo already activated although the node is not checked?</div><div><br></div><div>Thanks for any help,</div><div><br></div><div>Rob</div><div><br></div><div><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size:
12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Robert Buckley <robertdbuckley@yahoo.com><br> <b><span style="font-weight: bold;">An:</span></b> "users@geoext.org" <users@geoext.org> <br> <b><span style="font-weight: bold;">Gesendet:</span></b> 15:23 Dienstag, 6.März 2012<br> <b><span style="font-weight: bold;">Betreff:</span></b> Re: [Users] geoext.popup position wrong<br> </font> </div> <br><div id="yiv154524843"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div><span>OK.......ill update right away and see what happens</span></div><div><br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: times, serif; "> <div dir="ltr"> <font size="2"
face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">Von:</span></b> Andreas Hocevar <ahocevar@opengeo.org><br> <b><span style="font-weight:bold;">An:</span></b> Robert Buckley <robertdbuckley@yahoo.com> <br><b><span style="font-weight:bold;">CC:</span></b> "users@geoext.org" <users@geoext.org> <br> <b><span style="font-weight:bold;">Gesendet:</span></b> 15:17 Dienstag, 6.März 2012<br> <b><span style="font-weight:bold;">Betreff:</span></b> Re: [Users] geoext.popup position wrong<br> </font> </div> <br>Looks to me like you're
using an old version of the GeoExt css - one<br>that doesn't match your GeoExt version.<br><br>Andreas.<br><br>On Tue, Mar 6, 2012 at 3:04 PM, Robert Buckley <<a rel="nofollow" ymailto="mailto:robertdbuckley@yahoo.com" target="_blank" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> wrote:<br>> Hi,<br>><br>> you can try it out here...<br>><br>> <a rel="nofollow" target="_blank" href="http://maps.zgb.de/geoportal/treenodes.html">http://maps.zgb.de/geoportal/treenodes.html</a><br>><br>> ________________________________<br>> Von: Andreas Hocevar <<a rel="nofollow" ymailto="mailto:ahocevar@opengeo.org" target="_blank" href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>><br>> An: Robert Buckley <<a rel="nofollow" ymailto="mailto:robertdbuckley@yahoo.com" target="_blank" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> CC: "<a rel="nofollow"
ymailto="mailto:users@geoext.org" target="_blank" href="mailto:users@geoext.org">users@geoext.org</a>" <<a rel="nofollow" ymailto="mailto:users@geoext.org" target="_blank" href="mailto:users@geoext.org">users@geoext.org</a>><br>> Gesendet: 14:59 Dienstag, 6.März 2012<br>> Betreff: Re: [Users] geoext.popup position wrong<br>><br>> Can you be a bit more specific on how the popup position is wrong?<br>> Maybe with a screenshot?<br>><br>> It should be enough to configure<br>><br>> location: e.xy<br>><br>> Andreas.<br>><br>> On Tue, Mar 6, 2012 at 2:06 PM, Robert Buckley <<a rel="nofollow" ymailto="mailto:robertdbuckley@yahoo.com" target="_blank" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>><br>> wrote:<br>>> Hi,<br>>><br>>> it´s not the first time I have had this problem, but I have looked into my<br>>> own work and cannot find a
solution.<br>>><br>>> When the popup appears, it is not positioned on the point I clicked..<br>>><br>>> I have included the geoext css and the popup css files in the html doc.<br>>><br>>> my code
is here...if some could give me a clue as to where I should look<br>>> for<br>>> a solution I´d be most grateful,<br>>><br>>> cheers,<br>>><br>>> Rob<br>>><br>>><br>>><br>>> var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({<br>>> infoFormat: "application/vnd.ogc.gml",<br>>> queryVisible: true,<br>>> highlightOnly: false,<br>>> maxFeatures: 20,<br>>> eventListeners: {<br>>> "getfeatureinfo": function(e) {<br>>> var items = [];<br>>> Ext.each(e.features, function(feature) {<br>>>
items.push({<br>>> xtype: "propertygrid",<br>>> title: feature.fid,<br>>> source: feature.attributes<br>>> });<br>>> });<br>>> new GeoExt.Popup({<br>>> url: "/geoserver/ows",<br>>> title: "Info",<br>>>
layout: "border",<br>>> region:"east",<br>>> //x: 330,<br>>> //y: 20,<br>>> width: 200,<br>>> height: 300,<br>>> layout: "accordion",<br>>> bodyStyle: 'background-color:#FFF;,font-size:14px;',<br>>> autoScroll: true,<br>>> map: mapPanel.map,<br>>> location:
map.getLonLatFromPixel(e.xy),<br>>> //location: e.xy,<br>>> //lonlat: mapPanel.map.getLonLatFromPixel(e.xy),<br>>> // html: e.text,<br>>> maximizable: false,<br>>> resizable: false,<br>>> collapsible: false,<br>>> items: items<br>>> }).show();<br>>> }<br>>> }<br>>> });<br>>><br>>> _______________________________________________<br>>> Users mailing list<br>>>
<a rel="nofollow" ymailto="mailto:Users@geoext.org" target="_blank" href="mailto:Users@geoext.org">Users@geoext.org</a><br>>> <a rel="nofollow" target="_blank" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>>><br>><br>><br>><br>> --<br>> Andreas Hocevar<br>> OpenGeo - <a rel="nofollow" target="_blank" href="http://opengeo.org/">http://opengeo.org/</a><br>> Expert service straight from the developers.<br>><br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a rel="nofollow" ymailto="mailto:Users@geoext.org" target="_blank" href="mailto:Users@geoext.org">Users@geoext.org</a><br>> <a rel="nofollow" target="_blank" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a><br>><br><br><br><br>-- <br>Andreas Hocevar<br>OpenGeo - <a
rel="nofollow" target="_blank" href="http://opengeo.org/">http://opengeo.org/</a><br>Expert service straight from the
developers.<br><br><br> </div> </div> </div></div></div><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@geoext.org" 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><br><br> </div> </div> </div></body></html>