<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>Thank you Ferencik for your solution but you don"t need to select/unselect layers in a group for your solution ...</DIV>
<DIV> </DIV>
<DIV>My legend is generated dynamicaly with mapfile and legend_template and look like that</DIV>
<DIV> </DIV>
<P>Group 1</P>
<UL>
<LI> layer 1</LI>
<LI> layer 2</LI>
<LI> layer 3</LI></UL>
<P>Group 2</P>
<UL>
<LI> layer1</LI>
<LI> layer2</LI></UL>
<DIV> </DIV>
<DIV>and i have a checkbox for each line ; those for layers are coded like that :</DIV>
<DIV> </DIV>
<DIV> <input type="checkbox" name="legendlayername[]" <BR> value="[leg_layer_name]"<BR> [if name=layer_status oper=eq value=1]CHECKED[/if]<BR> [if name=layer_status oper=eq value=2]CHECKED[/if]><BR> <BR> </span></DIV>
<DIV> </DIV>
<DIV>what i need now is to code the group so that a click on a group could check ou uncheck the layers depending.</DIV>
<DIV> </DIV>
<DIV>For map refreshing, I used CWCJSAPI and i just solve the problem of navigation buttons like zoomin zoomout, they no longer refresh all the page;</DIV>
<DIV>Only Update button need now to reload the page but I have no idea for Javascript so it'll be difficult !!</DIV>
<DIV> </DIV>
<DIV>Thank you for your help</DIV>
<DIV><BR><B><I>Jano Ferencik <ferencik.ioan@personal.ro></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi Edith<BR><BR>the situation is like this..I created a javascript treemenu wich I am attaching<BR>to this email as a zip archive....you can modify and use it ....but....there are<BR>2 things..<BR>1 as long as The update Map widget refreshes the page You can do nothing about<BR>it... the menu will allways refresh and appear like on first load...you could<BR>solve this by creating some javascript handling some events...wich will keep the<BR>opened group open after refreshing....the script should use the :active<BR>pseudoclass of group(wich in this case must be links)...(this is only an advice<BR>)...I though one tome to do it but could take me a loomng time as my javascript<BR>skills are only basic<BR><BR>In my case I have another problem...I fave a huge number of layers in may<BR>Chameleon application(about 50) and I created a legend on multiple levels...it<BR>is refreshing itself on
Update Map and second I think that the number of layers<BR>conducted to decreasing of speed when loading the map....<BR>A possibble solution could be the new Ka-Map project from DM solutions(ie. the<BR>map doesn't refresh itslelf on the basic actions like panning or zooming or<BR>layer controls).....but you will have to wait for the application Ka-map to be<BR>released....i think it will happen soon(ask Paul Spencer about this) :))<BR><BR>Regards<BR><BR><BR>> Hi list,<BR>> <BR>> I have a problem similar to jstreeview ; I developped legendTemplate to show<BR>at page load only groups so the user could developp a group by clicking its id<BR>to show the layers in the group ; I have two problems :<BR>> 1 - using Javascript to hide / show layers for each group. <BR>> I think Jano Ferencik (who first posted about Jstreeview) succeed doing <BR>> this ; could you help me ?<BR>> 2 - I have the same problem after Update, the page looks like on the fisrt <BR>> loading
and user loose his environnment, only groups are visible.<BR>> <BR>> can somebody have any suggestions ?<BR>> <BR>> Thanks<BR>> <BR>> <BR>> <BR>> <BR>> ---------------------------------<BR>> Post your free ad now! Yahoo! Canada Personals<BR>> <BR><BR><BR><BR><BR><BR>___________________________<BR>Cv-ul tau ia 500 euro/luna!<BR>http://500.myjob.ro<BR><BR></BLOCKQUOTE><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>