<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>What form&nbsp;input elements do you have in your 
template? When you say "any clicking zone appears", does that mean when you 
click, the map disappears? </FONT></DIV>
<DIV><FONT face=Arial size=2>Normally when you click, the page submits. If your 
input elements in your template are not correct, or missing, it may submit to an 
incorrect link, or with incorrect parameters. Maybe you can post the relevant 
bits of your template.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: UMN MapServer 
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On Behalf Of N M<BR>Sent: 20 
July 2005 16:43<BR>To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>Subject: 
Re: [UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, why?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hi Daniele,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I understand what you are telling me but the 
problem is that although I had <BR>an .html page when I execute mapserver, I 
can't click anywhere in the map, <BR>any clicking zone appears.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I tried using TEMPLATE in LAYER section, in WEB 
section and in CLASS section <BR>but nothing occurs.</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>&gt;<BR>&gt;A TEMPLATE is an existing .html file that is used by CGI 
Mapserver as a<BR>&gt;"skeleton" page: in this page, there are some fields that 
Mapserver<BR>&gt;substitutes with the image of the map, the scalebar, the 
reference map,<BR>&gt;and other variables (current scale, current extent, and so 
on).<BR>&gt;<BR>&gt;This TEMPLATE must be defined in the WEB section of the 
mapfile<BR>&gt;(<A 
href="http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web">http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web</A>).<BR>&gt;<BR>&gt;<BR>&gt;You 
can also use a TEMPLATE in the CLASS section<BR>&gt;(<A 
href="http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#class">http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#class</A>) 
or -<BR>&gt;if you want the same template for each class of a layer - in the 
LAYER<BR>&gt;section<BR>&gt;(<A 
href="http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer">http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#layer</A>) 
of the<BR>&gt;mapfile.<BR>&gt;<BR>&gt;In this case, the TEMPLATE (this also must 
be an existing .html file) is<BR>&gt;used by CGI Mapserver when you query the 
map: the template contains<BR>&gt;field that are substituted with vaules of the 
queried attributes.<BR>&gt;<BR>&gt;<BR>&gt;In your example mapfile, the TEMPLATE 
instruction as the following<BR>&gt;meaning:<BR>&gt;"When you query the map, 
show results (for this layer) using<BR>&gt;http://www.nusvirtual.com as 
template".<BR>&gt;The question is: is this a good template 
file?<BR>&gt;<BR>&gt;But I suggest you to use a "local" .html file as a 
template.<BR>&gt;<BR>&gt;&nbsp;Daniele<BR>&gt;<BR>&gt;<BR>&gt;-----Original 
Message-----<BR>&gt;From: UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<BR>&gt;Behalf Of SUBSCRIBE 
MAPSERVER-USERS Nuri<BR>&gt;Sent: Wednesday, July 20, 2005 9:32 AM<BR>&gt;To: <A 
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>&gt;Subject: 
[UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run, 
why?<BR>&gt;<BR>&gt;<BR>&gt;Hi,<BR>&gt;<BR>&gt;I inserted a TEMPLATE instruction 
in my map file but the link doesn't<BR>&gt;run in the 
map.<BR>&gt;<BR>&gt;Someone could tell me why I'm doing wrong? Thank 
you.<BR>&gt;<BR>&gt;This is my map 
file:<BR>&gt;<BR>&gt;<BR>&gt;MAP<BR>&gt;&nbsp;&nbsp; 
IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG<BR>&gt;&nbsp;&nbsp; 
EXTENT&nbsp;&nbsp; 20.000000 18.000000 50.000000 110.000000<BR>&gt;&nbsp;&nbsp; 
SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500 
350<BR>&gt;&nbsp;&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"data"<BR>&gt;&nbsp;&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 255 180 
0<BR>&gt;&nbsp;&nbsp; SYMBOLSET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"symbols/symbols35.sym"<BR>&gt;&nbsp;&nbsp; FONTSET 
"fonts/fonts.list"<BR>&gt;<BR>&gt;&nbsp;&nbsp; # Start of LAYER 
DEFINITIONS<BR>&gt;--------------------------------------------<BR>&gt;-<BR>&gt;<BR>&gt;&nbsp;&nbsp; 
LAYER # Capa de raster<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
mapafig<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DATA 
"raster/figueres.tif"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; STATUS 
DEFAULT<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
RASTER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; PROCESSING 
"BANDS=1,2,3"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; OFFSITE 0 0 
255<BR>&gt;&nbsp;&nbsp; END # Fi capa de raster<BR>&gt;<BR>&gt;&nbsp;&nbsp; 
LAYER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; NAME 
"prova"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE "<A 
href="http://www.nusvirtual.com">http://www.nusvirtual.com</A>"&nbsp;&nbsp;&nbsp; 
&lt;--------<BR>&gt;????????????????????<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
POINT<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE 
OGR<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION 
"mapa21.ovf"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DATA 
"mapa21"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; LABELITEM 
"id"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; #PROJECTION<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
#&nbsp; "init=epsg:4326"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
#END<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
CLASS<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL 
'symbols/prova.gif'<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #SIZE 
6<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 
0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
LABEL<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 
MEDIUM<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE 
BITMAP<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 
0<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
END<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&gt;END<BR>&gt;<BR>&gt;&nbsp;&nbsp; # 
End of LAYER DEFINITIONS ------------------------------- END # end<BR>&gt;of map 
file<BR>&gt;<BR>&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>_________________________________________________________________<BR>Descubre 
la descarga digital con MSN Music. Más de medio millón de <BR>canciones. <A 
href="http://music.msn.es/">http://music.msn.es/</A><BR></FONT></DIV></BODY></HTML>