<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
I am not sure if this solves your problem, but first of all you
should use <b>location: e.xy</b> instead of <b>lonlat:
mapPanel.map.getLonLatFromPixel(e.xy)</b> (since version 1.0).<br>
<br>
What I think could be a problem is the fact that you have provided
no URL to your WMSGetFeatureInfo Control. Have a look at<br>
<br>
<a class="moz-txt-link-freetext" href="http://openlayers.org/dev/examples/getfeatureinfo-control.html">http://openlayers.org/dev/examples/getfeatureinfo-control.html</a><br>
<br>
Best regards,<br>
Chris <br>
<br>
<br>
Am 18.01.2011 19:32, schrieb Robert Buckley:
<blockquote cite="mid:257512.7203.qm@web24107.mail.ird.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: arial,helvetica,sans-serif; font-size:
8pt;"> Hi,<br>
<br>
I have layers in a mapPanel which can be queried without
problem.<br>
<br>
I also have a getcapabilities window which loads layers into the
map. But these layers do not get a response from the
getFeatureInfo method.<br>
<br>
<br>
Could anyone offer any suggestion as to why this doesn´t happen?<br>
<br>
yours,<br>
<br>
Robert<br>
<div><br>
<span style="color: rgb(192, 0, 0);">CODE FOR THE POPUPS</span><br>
<br>
// create the popup<br>
var featureInfo = new OpenLayers.Control.WMSGetFeatureInfo({<br>
queryVisible: true,<br>
highlightOnly: false,<br>
maxFeatures: 2,<br>
<br>
});<br>
<br>
<br>
featureInfo.events.on({<br>
getfeatureinfo: function(e) {<br>
new GeoExt.Popup({<br>
title: "INFO",<br>
width: 300,<br>
height : 200,<br>
autoHeight: true,<br>
layout: 'fit',<br>
bodyStyle:
'background-color:#FFF;,font-size:14px;',<br>
autoScroll: true,<br>
maximizable: true,<br>
map: mapPanel.map,<br>
lonlat: mapPanel.map.getLonLatFromPixel(e.xy),<br>
html: e.text,<br>
unpinnable:true,<br>
anchored: true,<br>
shadow: true,<br>
listeners: {<br>
close: function() {<br>
// closing a popup destroys it, but
our reference is truthy<br>
popup = null;<br>
}<br>
}<br>
<br>
}).show();<br>
}<br>
});<br>
<br>
map.addControl(featureInfo);<br>
featureInfo.activate();<br>
<br>
<br>
<br>
</div>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@geoext.org">Users@geoext.org</a>
<a class="moz-txt-link-freetext" href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>