Hello GeoExt List,<br><br>I am using a GeoExt.Popup to display my feature info. All is going well, except I'd like my popup to point to the feature clicked on the WMS layer as shown in the examples. In my case the popup comes up as a square box with no point on the bottom to indicate exactly which point was clicked. I've looked at several examples and have checked my configuration time and again and do not see what I am missing...<br>
<br>var info = new OpenLayers.Control.WMSGetFeatureInfo({<br> url: '<a href="http://localhost:8080/geoserver/wms">http://localhost:8080/geoserver/wms</a>',<br> layerUrls: ["<a href="http://localhost:8080/geoserver/gwc/service/wms">http://localhost:8080/geoserver/gwc/service/wms</a>"],<br>
title: 'Identify features by clicking',<br> layers: [tibet_placenames, chn_bridges, tib_bridges, chn_countys, tib_countys, chn_farms, tib_farms, chn_glaciers, tib_glaciers, chn_grazing, tib_grazing, chn_hwyCrew, tib_hwyCrew, chn_hospitals, tib_hospitals, chn_lakes, tib_lakes, chn_monastaries, tib_monastaries, chn_pass, tib_pass, chn_rivers, tib_rivers, chn_townships, tib_townships, chn_villages, tib_villages],<br>
queryVisible: true,<br> eventListeners: {<br> getfeatureinfo: function(event){ <br> <br> popup = new GeoExt.Popup({<br>
title: "Popup",<br> //location: map.getLonLatFromPixel(event.xy),<br> location: new OpenLayers.LonLat(mapPanel.map.getLonLatFromPixel(event.xy)).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")),<br>
lonlat: mapPanel.map.getLonLatFromPixel(event.xy),<br> maximizable: true,<br> collapsible: true,<br> map: mapPanel.map,<br>
anchored: true,<br> html: '<div id="popupWrap"><div id="popupTop"><h4>Place Info</h4></div><div id ="popupText" class="popupText">'+ event.text + redesignHTML(event.text) + '</div><div class="popupPhoto"><img src="<a href="http://localhost/mapScripts/Photos/lhasa.jpeg">http://localhost/mapScripts/Photos/lhasa.jpeg</a>" /></div><div id="popupFooter"><br /><br /><a href="<a href="http://www.trace.org">http://www.trace.org</a>">Trace Website</a></div></div>',<br>
listeners: {<br> close: function() {<br> // closing a popup destroys it, but our reference is truthy<br>
popup = null;<br> }<br> }<br> });<br> <br>
// since the popup is anchored, calling show will move popup to this location<br> popup.show();<br><br> }//end getfeatureinfo<br> }//end eventListeners<br>
});//end OpenLayers.Control.WMSGetFeatureInfo<br><br> //Add control to map<br> mapPanel.map.addControl(info);<br> info.activate();<br><br>If anyone understands what I could be missing please pass on the knowledge, I'd really appreciate it :)<br>
<br>elshae<br>