Opened 7 years ago

Closed 6 years ago

#347 closed enhancement (fixed)

VectorLegend should provide methods to add and remove rules

Reported by: tschaub Owned by:
Priority: major Milestone: 1.1
Component: GeoExt Version: trunk
Keywords: Cc:
State: None

Description

Currently, we assume rule management is handled outside the legend panel. This means you remove a rule from the panel.rules array and then call panel.update. In doing this, you also have to be careful about the panel.selectedRule reference that the panel assumes is a rule in the rules array. It would be more convenient to call panel.removeRule and have the legend updated appropriately.

I'm not completely convinced that this is the right thing to add to a legend panel, but wanted to open a discussion at least. We could also decide to modify (and make public) the removeRuleEntry method.

Change History (1)

comment:1 Changed 6 years ago by ahocevar

  • Resolution set to fixed
  • Status changed from new to closed

Using a grid with a GeoExt.grid.SymbolizerColumn and records from a GeoExt.data.StyleReader seems like a more appropriate solution. Closing.

Note: See TracTickets for help on using tickets.