<DIV>
<DIV>
<DIV>Ok,</DIV>
<DIV> </DIV>
<DIV>Here is the solution (joined in jstreeview.rtf)</DIV>
<DIV>I have a treeview legend with expand/collapsed groups.</DIV>
<DIV>For this to work, In the map file, i have for instance for a layer</DIV>
<DIV> </DIV>
<DIV> METADATA<BR> "GROUP" "Hydrologie"<BR> "DESCRIPTION" "Mer"<BR> SHOWINLEGEND "0"<BR> LAYER_INDEX "0"<BR> END<BR></DIV>
<DIV>SHOWINLEGEND allows me to add a layer on the map without showing it in legend !!! ; i could put SHOWINLEGEND "1" in other layers or nothing.</DIV>
<DIV> </DIV>
<DIV>I also used JSAPI in my template in order to leave a group expanded when the users does it after refreshing the map (for Zoomin Zoom out etc...)</DIV>
<DIV><cwc2 type="cwcjsapi" debug="false"/><BR><cwc2 type="SharedResource" name="CWCJSAPI"/><BR>but an Update reload the page so I loose the environnement !</DIV>
<DIV>As I'm a basic user of _javascript, i cannot go further !!</DIV>
<DIV> </DIV>
<DIV>I also noticed that the Scale widget <cwc2 type="Scale" /> don't work properly in this mode, it cannot write the scale ; it writes (undefined);</DIV>
<DIV>I checked sample_enhanced_jsapi.html and it's the same error !!!</DIV>
<DIV> </DIV>
<DIV>Hopping it could help someone !</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Edith<BR><BR><B><I>Paul Spencer <pspencer@dmsolutions.ca></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">cool!<BR><BR>You should post your whole solution :)<BR><BR>Paul<BR><BR><?xml:namespace prefix = javascript /><javascript:void(0);><BR></BLOCKQUOTE></DIV></javascript:void(0);></DIV><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>