You need to log in before you can comment on or make changes to this bug.
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.
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>
nice work guys, works great
I tested as well, it works. I will switch over my templates to use the mainstream widgets instead of our project-specific widgets.