<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> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Benjamin Preisig <benjaminpreisig@gmx.at>@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> 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>
url: <br>
'http://localhost/cgi-bin/mapserv?map=/Library/WebServer/Documents/webmap/mapfiles/gorjanci.map',
<br>
<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>
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>
NAME "vsa_imena"<br>
STATUS
ON<br>
TRANSPARENCY 100<br>
TYPE POINT<br>
DATA "namen_point.shp"<br>
LABELITEM "TextString"<br>
<br>
MAXSCALEDENOM 51000<br>
MINSCALEDENOM 2000<br>
<br>
<br>
TOLERANCE 100<br>
TOLERANCEUNITS pixels<br>
<br>
METADATA<br>
"WMS_TITLE"
"vsa ledinska imena"<br>
"WMS_SRS"
"epsg:31258"<br>
"WMS_INCLUDE_ITEMS"
"all"<br>
END #METADATA<br>
<br>
PROJECTION<br>
"init=epsg:31258"<br>
END #PROJECTION<br>
<br>
CLASS<br>
NAME "vsa_imena"<br>
TEMPLATE
<br>
"/Library/WebServer/Documents/webmap/templates/content.html"<br>
STYLE<br>
COLOR 0
0 0<br>
END #STYLE<br>
#Beschriftung<br>
LABEL<br>
TYPE
TRUETYPE<br>
ANTIALIAS
TRUE<br>
ENCODING
"UTF-8"<br>
FONT
"calibri_a"<br>
COLOR
0 0 0<br>
OUTLINECOLOR
255 255 255<br>
#BUFFER
4<br>
#OUTLINEWIDTH
5<br>
POSITION
cc<br>
SIZE
12<br>
ANGLE
[Angle]<br>
END #LABEL<br>
END #CLASS<br>
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>