<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> LAYER #show single poi
<br> NAME floor_1_Show_Pois
<br> DATA POIs
<br> STATUS OFF
<br> TYPE POINT<br> CLASSITEM "country"<br> FILTERITEM 'floor'<br> FILTER 'f.1' <br> LABELITEM "name"
<br> TOLERANCE 7<br><br> CLASS
<br> NAME 'single_poi'<br> EXPRESSION '%ccountry%' <br> TEMPLATE '../templates/pois.html'<br> STYLE
<br> COLOR 0 0 0<br> SYMBOL '../symbols/flag_blue.gif'<br> END<br> LABEL
<br> COLOR 0 0 0
<br> TYPE BITMAP <br> SIZE MEDIUM<br> ANTIALIAS TRUE
<br> POSITION LC<br> FORCE TRUE
<br> PARTIALS FALSE
<br> BUFFER 4
<br> END # end of label<br> END #CLASS <br> END # layer Pois with label <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><a href="/cgi-bin/mapserv50?map=/var/www/map1.map&layers=floor_1 floor_1_Show_Pois&ccountry=[country]&imgext=[state]&imgxy=[center]">Show on Section </a><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><input type="hidden" neme="ccountry" value="[ccountry]"><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><szekerest@gmail.com></i></b> ha scritto:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">Da: Tamas Szekeres <szekerest@gmail.com><br>Oggetto: Re: [mapserver-users] Show only one POI on the map<br>A: valerio.vianello@yahoo.it<br>Cc: "mapserver" <mapserver-users@lists.osgeo.org><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 <valerio.vianello@yahoo.it>:<br>> Hi Tamas,<br>><br>> I have a bit issue
...<br>> Do you know how lock the variable value until the next changing ?<br>><br>> Now I am able to show only one poi in the map but if I try to query it I<br>> have no results as response. I have done a lot of test and I think the<br>> problem is on variable value. after the page is loaded the value of<br>> parameter<br>> (EXPRESSION '%ccountry%' ) in the map file lose its past value<br>and so the<br>> mapserver cgi haven't reference to it anymore.<br>><br>> any suggestion ?<br>><br>> Best regards<br>> Valerio.<br>><br>> ________________________________<br>> Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua<br>> 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>