[Chameleon] Need help with the ScaleZoom widget

Julien-Samuel Lacroix jlacroix at mapgears.com
Thu Jun 15 15:18:46 EDT 2006


Hi,
There's CurrentImage="" option in this widget. Does it do the trick?

Julien

Blaine Ray wrote:
> 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
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list