Summary: | [Chameleon - Widget] add layer control widgets | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Paul Spencer <pspencer@dmsolutions.ca> |
Component: | Widget | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | VERIFIED FIXED | ||
Severity: | enhancement | CC: | dgadoury@dmsolutions.ca, jmckenna@gatewaygeomatics.com |
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
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.