<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi all,<br><br>I have a problem identifying Objects on my OpenLayers map. I have added the control-definition for the WMSGetFeatureInfo 'control' and activated it, but somehow, nothing happens when I click on anything. For debugging, I have implemented an alert() call, but no popup shows up so I know it's not a problem with coordinates or something, but a fundamental problem. Please find the relevent parts of the code attached:<br><br>...<br>// Some code creating the map (it's working fine). layer definitions etc..<br>...<br><br>info = new OpenLayers.Control.WMSGetFeatureInfo({<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: 'http://10.49.5.80:8080/geoserver/wms', <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: 'Identify features by clicking',<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; queryVisible: false,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eventListeners: {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getfeatureinfo: function(event) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map.addPopup(new OpenLayers.Popup.FramedCloud(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br><br>map.addControl(info);<br><br>...<br>// other control definitions<br>...<br><br>info.activate();<br><br>...<br>// rest of the init() code such as zoomToMaxExtent and so on...<br>...<br><br>Any ideas?<br><br>Cheers,<br>Freddy<br><br><br><div><br><b><span class="ecxApple-style-span" style="font-family:arial;font-weight:normal;font-size:small"><b>B.Eng. Frederick Löbig</b><br>Röderichstraße 59<br>60489 Frankfurt am Main<br>---<br>E::&nbsp;<a href="mailto:Frederick.Loebig@grunsnid.de">Frederick.Loebig@grunsnid.de</a><br>P: +49 (0) 69 - 78 99 52 41<br>M: +49 (0) 174 - 70 89 296<br>---<br><b>Office:</b><br><b>euNetworks GmbH</b><br>Ludwig-Landmann-Straße 405<div>60486 Frankfurt am Main</div><div>P: +49 (0) 69 - 90 554 - 534<br>E:&nbsp;<a href="mailto:Frederick.Loebig@eunetworks.com">Frederick.Loebig@eunetworks.com</a><br>S: floebig<br><br>This email and any attachments may contain confidential and/or legally privileged information. If you are not the intended recipient, please delete the email without reading it and notify the sender.</div></span></b></div><div style="z-index:-1;top:0px;left:0px;width:100%;height:294px"></div>                                               </div></body>
</html>