[Chameleon] Need help with the ScaleZoom widget

Blaine Ray bray at tnrc.net
Thu Jun 15 11:44:33 EDT 2006


Hey everyone..this is my first post on the listserv..just checking to
see if anyone can help me out.  
 
Basically, i'm trying to add the ScaleZoom widget to my map, so end
users can click on the various zoom levels..similar to mapquest
navigation.  I've gotten the widget to work okay, but I'd like to be
able to have the zoom level button change to a different color (i.e. a
different image) when the cursor hovers over it, or when it's the
current zoom level.  Can anyone give me any suggestions?  I'm kinda new
to the world of chameleon, mapscript, javascript, etc.  ..so please be
patient with me.  Thanks!
 
Here's the code segment I'm working with:
 
 <!-- Begin ScaleZoom widget --> 
<CWC2 TYPE="ScaleZoom"
ORIENTATION="VERTICAL"
ENABLED="TRUE"
VISIBLE="TRUE"
INCREASEIMAGE="images/zoomin_words.png"
DECREASEIMAGE="images/zoomout_words.png">
   <ZOOMVALUE SCALE="320000" IMAGE="images/zoomlevel.png">
   <ZOOMVALUE SCALE="160000" IMAGE="images/zoomlevel.png"/>
   <ZOOMVALUE SCALE="80000" IMAGE="images/zoomlevel.png"/>
   <ZOOMVALUE SCALE="40000" IMAGE="images/zoomlevel.png"/>
   <ZOOMVALUE SCALE="10000" IMAGE="images/zoomlevel.png"/>
   <ZOOMVALUE SCALE="5000" IMAGE="images/zoomlevel.png"/>
</CWC2>
<!-- End ScaleZoom widget --> 
 
 
Blaine Ray
Information Specialist
Neighborhoods Resource Center
PO Box 100941
Nashville, TN  37224-0941
------------------------------
Phone: (615) 782-8212 Ext 25
Fax:   (615) 782-8213 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060615/7bc815e0/attachment.html


More information about the Chameleon mailing list