<!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 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> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial size=2>Hi Daniele,</FONT></DIV>
<DIV> </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> </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> </DIV><FONT face=Arial size=2>
<DIV><BR>><BR>>A TEMPLATE is an existing .html file that is used by CGI
Mapserver as a<BR>>"skeleton" page: in this page, there are some fields that
Mapserver<BR>>substitutes with the image of the map, the scalebar, the
reference map,<BR>>and other variables (current scale, current extent, and so
on).<BR>><BR>>This TEMPLATE must be defined in the WEB section of the
mapfile<BR>>(<A
href="http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web">http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#web</A>).<BR>><BR>><BR>>You
can also use a TEMPLATE in the CLASS section<BR>>(<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>>if you want the same template for each class of a layer - in the
LAYER<BR>>section<BR>>(<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>>mapfile.<BR>><BR>>In this case, the TEMPLATE (this also must
be an existing .html file) is<BR>>used by CGI Mapserver when you query the
map: the template contains<BR>>field that are substituted with vaules of the
queried attributes.<BR>><BR>><BR>>In your example mapfile, the TEMPLATE
instruction as the following<BR>>meaning:<BR>>"When you query the map,
show results (for this layer) using<BR>>http://www.nusvirtual.com as
template".<BR>>The question is: is this a good template
file?<BR>><BR>>But I suggest you to use a "local" .html file as a
template.<BR>><BR>> Daniele<BR>><BR>><BR>>-----Original
Message-----<BR>>From: UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] On<BR>>Behalf Of SUBSCRIBE
MAPSERVER-USERS Nuri<BR>>Sent: Wednesday, July 20, 2005 9:32 AM<BR>>To: <A
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A><BR>>Subject:
[UMN_MAPSERVER-USERS] TEMPLATE in map file doesn't run,
why?<BR>><BR>><BR>>Hi,<BR>><BR>>I inserted a TEMPLATE instruction
in my map file but the link doesn't<BR>>run in the
map.<BR>><BR>>Someone could tell me why I'm doing wrong? Thank
you.<BR>><BR>>This is my map
file:<BR>><BR>><BR>>MAP<BR>>
IMAGETYPE PNG<BR>>
EXTENT 20.000000 18.000000 50.000000 110.000000<BR>>
SIZE 500
350<BR>> SHAPEPATH
"data"<BR>> IMAGECOLOR 255 180
0<BR>> SYMBOLSET
"symbols/symbols35.sym"<BR>> FONTSET
"fonts/fonts.list"<BR>><BR>> # Start of LAYER
DEFINITIONS<BR>>--------------------------------------------<BR>>-<BR>><BR>>
LAYER # Capa de raster<BR>> NAME
mapafig<BR>> DATA
"raster/figueres.tif"<BR>> STATUS
DEFAULT<BR>> TYPE
RASTER<BR>> PROCESSING
"BANDS=1,2,3"<BR>> OFFSITE 0 0
255<BR>> END # Fi capa de raster<BR>><BR>>
LAYER<BR>> NAME
"prova"<BR>> TEMPLATE "<A
href="http://www.nusvirtual.com">http://www.nusvirtual.com</A>"
<--------<BR>>????????????????????<BR>> TYPE
POINT<BR>> CONNECTIONTYPE
OGR<BR>> CONNECTION
"mapa21.ovf"<BR>> DATA
"mapa21"<BR>> LABELITEM
"id"<BR>> #PROJECTION<BR>>
# "init=epsg:4326"<BR>>
#END<BR>><BR>>
CLASS<BR>> SYMBOL
'symbols/prova.gif'<BR>> #SIZE
6<BR>> COLOR 255 0
0<BR>>
LABEL<BR>> SIZE
MEDIUM<BR>> TYPE
BITMAP<BR>> COLOR 0 0
0<BR>>
END<BR>> END<BR>>END<BR>><BR>> #
End of LAYER DEFINITIONS ------------------------------- END # end<BR>>of map
file<BR>><BR>></DIV>
<DIV> </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>