<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>Hi Tomas,<br><br>My demo is on my local machine for now...but I will show you part of the map file and template file.<br><br>this is the layer in which i use the variable the map file is called "map1.map"<br># Start of LAYER DEFINITIONS ---------------------------------------------<br>&nbsp; LAYER&nbsp; #show single poi
<br>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; floor_1_Show_Pois
<br>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POIs
<br>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OFF
<br>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POINT<br>&nbsp;&nbsp;&nbsp; CLASSITEM "country"<br>&nbsp;&nbsp;&nbsp; FILTERITEM 'floor'<br>&nbsp;&nbsp;&nbsp; FILTER 'f.1'&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; LABELITEM "name"
<br>&nbsp;&nbsp;&nbsp; TOLERANCE 7<br><br>&nbsp;&nbsp;&nbsp; CLASS
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'single_poi'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPRESSION '%ccountry%' <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE '../templates/pois.html'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE
<br>&nbsp;&nbsp;&nbsp; &nbsp; COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL '../symbols/flag_blue.gif'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LABEL
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 0 0 0
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE BITMAP <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE MEDIUM<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ANTIALIAS TRUE
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION LC<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FORCE TRUE
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS FALSE
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BUFFER 4
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END # end of label<br>&nbsp;&nbsp;&nbsp; END #CLASS&nbsp; <br>&nbsp; END #&nbsp; layer Pois with label&nbsp; <br>#end ---------------------------------------------<br><br>when I click on same point in the map using mapserver query mode a new page is loaded where there is this link to reload the same map file to show only one pois:<br><br>&lt;a href="/cgi-bin/mapserv50?map=/var/www/map1.map&amp;layers=floor_1 floor_1_Show_Pois&amp;ccountry=[country]&amp;imgext=[state]&amp;imgxy=[center]"&gt;Show on Section &lt;/a&gt;<br><br>the page is loaded correct but if I try for example to query to poi I have non response or if I zoom in or zoom out into the map the poi disappears.<br><br>I tried to use the field in the template<br>&lt;input type="hidden" neme="ccountry" value="[ccountry]"&gt;<br>but the value of [ccountry is replaced only the first time with the correct value then its value become the string
 "[ccountry]"...<br><br>any suggestions ?<br><br>best regards<br>Valerio<br><br><br><br><br>--- <b>Lun 16/6/08, Tamas Szekeres <i>&lt;szekerest@gmail.com&gt;</i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Tamas Szekeres &lt;szekerest@gmail.com&gt;<br>Oggetto: Re: [mapserver-users] Show only one POI on the map<br>A: valerio.vianello@yahoo.it<br>Cc: "mapserver" &lt;mapserver-users@lists.osgeo.org&gt;<br>Data: Lunedì 16 giugno 2008, 20:03<br><br><pre>Valerio,<br><br>I don`t think if anything is preserved across the subsequent requests<br>in the cgi mapserver so you might have to apply the substitution on<br>each request.<br>However I`m not sure I could catch the problem exactly, do you have<br>mapfile/URL examples?<br><br>Best regards,<br><br>Tamas<br><br><br>2008/6/16 valerio vianello &lt;valerio.vianello@yahoo.it&gt;:<br>&gt; Hi Tamas,<br>&gt;<br>&gt; I have a bit issue
 ...<br>&gt; Do you know how lock the variable value until the next changing ?<br>&gt;<br>&gt; Now I am able to show only one poi in the map but if I try to query it I<br>&gt; have no results as response. I have done a lot of test and I think the<br>&gt; problem is on variable value. after the page is loaded the value of<br>&gt; parameter<br>&gt; (EXPRESSION '%ccountry%' ) in  the map file lose its past value<br>and so the<br>&gt; mapserver cgi haven't reference to it anymore.<br>&gt;<br>&gt; any suggestion ?<br>&gt;<br>&gt; Best regards<br>&gt; Valerio.<br>&gt;<br>&gt; ________________________________<br>&gt; Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua<br>&gt; opinione!</pre></blockquote></td></tr></table><br>





      <hr size=1><font face="Arial" size="2">Scopri il <a href="http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F"> Blog di Yahoo! Mail</a>: trucchi, novità, consigli... e la tua opinione!</font>