[Chameleon] switching views

JR Santillan dgr8_39991 at yahoo.com
Tue Feb 7 20:26:45 EST 2006


Hello fellow chameleon users.
   
  I would to seek your help regarding turning on and off layers.

In my map, I am aiming to have two views: a graphical view  and an aerial view. How do I make it such that a user will only have to click a link in  the page and will transform  the view from a graphical one (shape files) to an aerial one  (aerial pphotograph). I have seen a campus map of MIT (http://whereis.mit.edu/map-jpg) 
 that employs this kind of method.
 
 I believe the principle here is that I only have to turn off  the graphical layers and then
turn on the aerial photograph layer when the view is  switched... But how will I do it? How do I make a link in my html file that will turn on the photo  layer and turn off the
others, and vice versa?
 
 I tried having two sets of map files.. one for shape file  layers and the other for the
aerial photograph.. However, I think it was not useful  because when the view is switched, the scale at which the map is displayed before the switch was  not preserved.
 
I consulted Jacob Delfos about this and he said the solution is though the use of javascripts. But I am nowhere at javascript.
   
  Please help.
   
  By the way I'm using MS4W.
   
  Thanks in advance.
   
  
 
 
 Regards,
 
 
 Jojin


			
---------------------------------
 Yahoo! Mail - Helps protect you from nasty viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060207/d8c873c4/attachment.html


More information about the Chameleon mailing list