Bug 583 - [Chameleon - Widget] add layer control widgets
: [Chameleon - Widget] add layer control widgets
Status: VERIFIED FIXED
: Chameleon
Widget
: 1.99
: PC Windows XP
: P2 enhancement
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-07-22 15:55 by
Modified: 2004-08-06 04:48 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-07-22 15:55:09
The requirement is to add layer control widgets for promoting, demoting and
removing layers from the current map.

Code for this was provided by Bart et al at GeoDan for the previous chameleon
structure, plan is to rework this code into the new structure and employ
basically as is.
------- Comment #1 From 2004-07-22 15:57:32 -------
New widgets added:

LayerOrder: combines the LayerMoveUp and LayerMoveDown into a single widget with
a DIRECTION attribute that controls the direction the layer(s) will be moved.

RemoveLayer: removes selected layer(s)

Both widgets work on the selected layer as chosen using the SelectLayer widget
or through some custom mechanism.  Both widgets will work on one or more layers.
 Neither widget will currently work with GROUPED layers.

Sample useage:

  <tr>
    <td><cwc2 type="LayerOrder" direction="UP" styleresource="NavButtons"
image="icons/icon_promote.png">
          <image state="normal"/>
          <image state="hover"/>
          <image state="selected"/>
          </cwc2></td>
    <td><cwc2 type="LayerOrder" direction="DOWN" styleresource="NavButtons"
image="icons/icon_demote.png">
          <image state="normal"/>
          <image state="hover"/>
          <image state="selected"/>
          </cwc2></td>
    <td colspan="2"><cwc2 type="RemoveLayer" styleresource="NavButtons"
image="icons/icon_delete.png">
          <image state="normal"/>
          <image state="hover"/>
          <image state="selected"/>
          </cwc2></td>
  </tr>
------- Comment #2 From 2004-08-03 19:54:33 -------
nice work guys, works great
------- Comment #3 From 2004-08-06 04:48:25 -------
I tested as well, it works. I will switch over my templates to use the 
mainstream widgets instead of our project-specific widgets.