<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I've a problem with getfeatureinfo.<br><br>I cannot see popups with infos when i click on polygons or points<br><br>this is the code that i use:<br><br><pre> // the map panel<br> <br> var info;<br> var map = new OpenLayers.Map("map-id");<br> maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)<br> var apiKey = "api";<br> <br> var mapPanel = new GeoExt.MapPanel({<br> border: true,<br> region: "center",<br> center: [1173892.7542969, 5870273.7714844],<br> zoom: 3,<br> layers: [<br> new OpenLayers.Layer.OSM(),<br><br> new OpenLayers.Layer.Vector("Highlighted Features", {<br> displayInLayerSwitcher: false, <br> isBaseLayer: false <br> }),<br><br> //<br> new OpenLayers.Layer.WMS("WMS Test polygon",<br> "http://localhost:8080/geoserver/wms", {<br> layers: "prova:poligoni",<br> transparent: true,<br> }, {<br> isBaseLayer: false<br> ,displayOutsideMaxExtent: true<br><br> }),<br> new OpenLayers.Layer.WMS("WMS Test point",<br> "http://localhost:8080/geoserver/wms", {<br> layers: "prova:punti",<br> transparent: true,<br> format: "image/gif"<br> }, {<br> isBaseLayer: false<br> ,displayOutsideMaxExtent: true<br> }) <br> ]<br> });<br>// FEATURE POPUP<br> info = new OpenLayers.Control.WMSGetFeatureInfo({<br> url: 'http://localhost:8080/geoserver/wms', <br> title: 'Identify features by clicking',<br> queryVisible: true,<br> eventListeners: {<br> getfeatureinfo: function(event) {<br> map.addPopup(new OpenLayers.Popup.FramedCloud(<br> "chicken", <br> map.getLonLatFromPixel(event.xy),<br> null,<br> event.text,<br> null,<br> true<br> ));<br> }<br> }<br> });<br> map.addControl(info);<br> info.activate();<br><br>i use also GEOEXT i don't know if that can be a problem.<br>Firebug don't give me any error :(<br><br>the full page code is here:<br>http://pastebin.com/j4KfVEUU<br></pre><br> </div></body>
</html>