[Chameleon] Need help with the ScaleZoom widget

Blaine Ray bray at tnrc.net
Thu Jun 15 17:53:16 EDT 2006


the "CurrentImage" option doesn't seem to be supported at this time..not
sure if it's because "ScaleZoom" is a BETA widget.

When you use CurrentImage as an option, it doesn't load an image at all,
but rather a blank image placeholder showing alt text.  

-Blaine 

-----Original Message-----
From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com] 
Sent: Thursday, June 15, 2006 2:19 PM
To: Blaine Ray
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Need help with the ScaleZoom widget

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