<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hi,</span></div><div><span><br></span></div><div><span>you can try it out here...</span></div><div><span><br></span></div><div><span><a href="http://maps.zgb.de/geoportal/treenodes.html">http://maps.zgb.de/geoportal/treenodes.html</a> <br></span></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> 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> 14:59 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>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 ymailto="mailto:robertdbuckley@yahoo.com" href="mailto:robertdbuckley@yahoo.com">robertdbuckley@yahoo.com</a>> 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 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 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><br><br>-- <br>Andreas Hocevar<br>OpenGeo - <a href="http://opengeo.org/"
target="_blank">http://opengeo.org/</a><br>Expert service straight from the developers.<br><br><br> </div> </div> </div></body></html>