Ticket #85 (closed enhancement: fixed)

Opened 2 months ago

Last modified 2 weeks ago

Legend widget: Capability to customize the legend

Reported by: aboudreault Assigned to: madair
Priority: P2 Milestone: 1.1
Component: Widgets Version: 1.0.6
Severity: Major Keywords:
Cc: External ID:
state: Approved Browser: All
Operating System: All

Description

I think we can apply the same pattern that i made for the SelectionPanel (see #71) to the Legend widget. In fact, it's only to allow the same freedom that SelectionPanel do. The user will be able to set a function for generate his legend or create a renderer for a new complex behavior. I know there are some tickets that need to be fixed for this widget and some refactoring for performance issues...... so i would like to know if you prefer that i wait before make some work in this widget.

Attachments

legendRenderer.patch (13.9 kB) - added by aboudreault on 08/05/08 16:24:09.

Change History

07/01/08 14:18:33 changed by aboudreault

  • summary changed from Legend widget: Capability to customize display results to Legend widget: Capability to customize the legend.

07/02/08 09:05:59 changed by pagameba

Alan, the other issues that have been reported are all related to the code that turns layers/groups on/off which exists outside of the legend widget I believe. Please go ahead and propose your change to the legend widget - I have at least one new renderer to implement already!

Actually, I'd like you to do this as a new widget, perhaps called LayerControl (?). This could supersede the existing Legend and LayerManager widgets, which we would then retrofit to extend the LayerControl widget with their own custom renderer.

07/07/08 09:52:28 changed by aboudreault

  • owner changed from madair to aboudreault.

I commited a first version in my sandbox.

08/05/08 16:24:09 changed by aboudreault

  • attachment legendRenderer.patch added.

08/07/08 15:12:05 changed by madair

  • status changed from new to assigned.
  • owner changed from aboudreault to madair.

Reviewed and overall I would support adding this to trunk. The example VerySimpleLegend? in the HowToCustomizeLegend wiki page doesn't work well with the standard samples because of a different group/layer layout but it's just an example that can be modified. Also there was an extra comma problem in the LegendRenderer? class.

08/22/08 09:38:04 changed by pagameba

Alan, please clean up the patch as suggested by Mike and then go ahead and commit. You deserve the credit.

08/22/08 09:38:59 changed by pagameba

  • state changed from New to Approved.

08/22/08 11:26:41 changed by aboudreault

  • status changed from assigned to closed.
  • resolution set to fixed.

Committed to SVN trunk r1467