<br><font size=2 face="sans-serif">Anything useful in apache access and
error logs. And mapserver log?</font>
<br>
<br>
<br><font size=2 face="sans-serif">I use this control but I started from
this example</font>
<br><font size=2 face="sans-serif">http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-control.html</font>
<br><font size=2 face="sans-serif">steve</font>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Benjamin Preisig &lt;benjaminpreisig@gmx.at&gt;@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">10/08/2010 07:31 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[OpenLayers-Users] wmsGetFeatureInfo
with Mapserver</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>&nbsp; Hi,<br>
<br>
I am trying to get the Feature Info - PopUp example <br>
(http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-popup.html)
<br>
working, but I am encountering some problems with it. When i click on <br>
the map nothing happens. I tried to search for the problem with firebug,
<br>
but i cant find anything.<br>
As you can see in the following code i was just changing the url:<br>
<br>
info = new OpenLayers.Control.WMSGetFeatureInfo({<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
url: <br>
'http://localhost/cgi-bin/mapserv?map=/Library/WebServer/Documents/webmap/mapfiles/gorjanci.map',
<br>
<br>
 &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;
queryVisible: true,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
eventListeners: {<br>
 &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; map.addPopup(new OpenLayers.Popup.FramedCloud(<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;chicken&quot;,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.getLonLatFromPixel(event.xy),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; event.text,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; null,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; true<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; ));<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; }<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.addControl(info);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; info.activate();<br>
<br>
So I thought maybe the mapfile is the problem. But I dont know why, <br>
because a manual request works perfect.<br>
Here is a part of my mapfile:<br>
<br>
LAYER<br>
 &nbsp; &nbsp; &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;vsa_imena&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; STATUS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;ON<br>
 &nbsp; &nbsp; &nbsp; &nbsp; TRANSPARENCY &nbsp; &nbsp;100<br>
 &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;POINT<br>
 &nbsp; &nbsp; &nbsp; &nbsp; DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;namen_point.shp&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; LABELITEM &nbsp; &nbsp; &nbsp; &nbsp;&quot;TextString&quot;<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; MAXSCALEDENOM &nbsp; &nbsp;51000<br>
 &nbsp; &nbsp; &nbsp; &nbsp; MINSCALEDENOM &nbsp; &nbsp;2000<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; TOLERANCE &nbsp; &nbsp; &nbsp; &nbsp;100<br>
 &nbsp; &nbsp; &nbsp; &nbsp; TOLERANCEUNITS &nbsp; &nbsp;pixels<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; METADATA<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;WMS_TITLE&quot; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;vsa ledinska imena&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;WMS_SRS&quot; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;epsg:31258&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;WMS_INCLUDE_ITEMS&quot;
&nbsp; &nbsp; &nbsp; &nbsp;&quot;all&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; END #METADATA<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; PROJECTION<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;init=epsg:31258&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; END #PROJECTION<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; CLASS<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NAME &nbsp; &nbsp; &nbsp; &nbsp;&quot;vsa_imena&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TEMPLATE &nbsp; &nbsp; &nbsp;
&nbsp;<br>
&quot;/Library/WebServer/Documents/webmap/templates/content.html&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STYLE<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;0
0 0<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END #STYLE<br>
 &nbsp; &nbsp; &nbsp; &nbsp; #Beschriftung<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LABEL<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TYPE &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;TRUETYPE<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANTIALIAS &nbsp;
&nbsp; &nbsp; &nbsp;TRUE<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ENCODING &nbsp;
&nbsp; &nbsp; &nbsp;&quot;UTF-8&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FONT &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&quot;calibri_a&quot;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;0 0 0<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR &nbsp;
&nbsp;255 255 255<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #BUFFER &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #OUTLINEWIDTH
&nbsp; &nbsp;5<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; POSITION &nbsp;
&nbsp; &nbsp; &nbsp;cc<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZE &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;12<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANGLE &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;[Angle]<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END &nbsp; &nbsp;#LABEL<br>
 &nbsp; &nbsp; &nbsp; &nbsp; END #CLASS<br>
 &nbsp; &nbsp; END #LAYER<br>
<br>
<br>
I think I have done everything right and cant find nothing wrong. I <br>
would appreciate any help!<br>
<br>
Cheers,<br>
Benjamin<br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>