<div>Julien and Paul, thanks.</div> <div> </div> <div>How do I set up the legend template to control groups? What should be added in my map file so that I can have to groups?</div> <div> </div> <div>Thanks. <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">Or the legend template could be set up to control groups and you <BR>could have two groups in your map file ...<BR><BR>Paul<BR><BR>On 8-Feb-06, at 10:06 AM, Julien-Samuel Lacroix wrote:<BR><BR>> Hi,<BR>><BR>> Do you have a LegendTemplate widget in your application? This may <BR>> simplify the JavaScript to use.<BR>><BR>> If you don't want to use JavaScript, I think it should be <BR>> relatively easy to build a simple and custom widget that simply <BR>> turn on/off the two layers via php/mapscript. You can check the web <BR>> documentation for examples of widget
customization.<BR>><BR>> Julien<BR>><BR>> JR Santillan wrote:<BR>>> Hello fellow chameleon users.<BR>>> I would to seek your help regarding turning on and off layers.<BR>>> In my map, I am aiming to have two views: a graphical view and an <BR>>> aerial view. How do I make it such that a user will only have to <BR>>> click a link in the page and will transform the view from a <BR>>> graphical one (shape files) to an aerial one (aerial <BR>>> pphotograph). I have seen a campus map of MIT (http:// <BR>>> whereis.mit.edu/map-jpg <HTTP: <br go.php? util horde mail.up.edu.ph>>> url=http%3A%2F%2Fwhereis.mit.edu%2Fmap- <BR>>> jpg&Horde=37be496d6af69b5651d122cd40b96a90>) that employs this <BR>>> kind of method.<BR>>> I believe the principle here is that I only have to turn off the <BR>>> graphical layers and then<BR>>> turn on the aerial photograph layer when the view is switched...
<BR>>> But how will I do it? How do I make a link in my html file that <BR>>> will turn on the photo layer and turn off the<BR>>> others, and vice versa?<BR>>> I tried having two sets of map files.. one for shape file layers <BR>>> and the other for the<BR>>> aerial photograph.. However, I think it was not useful because <BR>>> when the view is switched, the scale at which the map is displayed <BR>>> before the switch was not preserved.<BR>>> I consulted Jacob Delfos about this and he said the solution is <BR>>> though the use of javascripts. But I am nowhere at javascript.<BR>>> Please help.<BR>>> By the way I'm using MS4W.<BR>>> Thanks in advance.<BR>>> Regards,<BR>>> Jojin<BR>>> --------------------------------------------------------------------- <BR>>> ---<BR>>> Brings words and photos together (easily) with<BR>>> PhotoMail <HTTP: <br *http: PMDEF3 taglines mail_us
us.rd.yahoo.com>>> photomail.mail.yahoo.com> - it's free and works with Yahoo! Mail.<BR>>> --------------------------------------------------------------------- <BR>>> ---<BR>>> _______________________________________________<BR>>> Chameleon mailing list<BR>>> Chameleon@lists.maptools.org<BR>>> http://lists.maptools.org/mailman/listinfo/chameleon<BR>> _______________________________________________<BR>> Chameleon mailing list<BR>> Chameleon@lists.maptools.org<BR>> http://lists.maptools.org/mailman/listinfo/chameleon<BR>><BR><BR>+-----------------------------------------------------------------+<BR>|Paul Spencer pspencer@dmsolutions.ca |<BR>+-----------------------------------------------------------------+<BR>|Applications & Software Development |<BR>|DM Solutions Group Inc
http://www.dmsolutions.ca/|<BR>+-----------------------------------------------------------------+<BR><BR><BR><BR><BR>_______________________________________________<BR>Chameleon mailing list<BR>Chameleon@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/chameleon<BR></BLOCKQUOTE><BR><BR><BR><DIV>
<DIV>
<DIV>
<DIV><FONT face=Wingdings color=#482c1b size=1> xxxxxx</FONT></DIV>
<DIV><FONT face="arial narrow"><FONT size=1> <FONT color=#800000> <FONT size=4><STRONG>When you have eliminated the possible,<BR>what remains is the impossible.</STRONG></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT face=wingdings color=#451528> ;;;;;;;;</FONT></DIV>
<DIV> </DIV></DIV></DIV></DIV><p>
        
                <hr size=1> Yahoo! Mail<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com">Use Photomail</a> to share photos without annoying attachments.