Opened 8 years ago

Closed 8 years ago

#135 closed enhancement (fixed)

LegendPanel: provide option to hide base layers

Reported by: bartvde Owned by:
Priority: minor Milestone: 0.6
Component: GeoExt.LegendPanel Version: trunk
Keywords: Cc:
State: Commit

Description

Seeing the discussion with Ivan Marchesini on the geoext users list today, it might be helpful to provide an option to hide base layers from the legend.

Attachments (1)

ticket135.patch (3.3 KB) - added by bartvde 8 years ago.
patch implementing filter for legend (includes a testcase)

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by ahocevar

I could also imagine making this more generic, by providing a filter function (like for the LayerLoader).

comment:2 Changed 8 years ago by bartvde

Great thinking Andreas, I was going to open up a new ticket to filter the legend for duplicate legendurls, but this generic way is also gonna facilitate that.

I'll create a patch for the filter function.

Changed 8 years ago by bartvde

patch implementing filter for legend (includes a testcase)

comment:3 Changed 8 years ago by bartvde

  • State changed from None to Review

comment:4 Changed 8 years ago by ahocevar

  • State changed from Review to Commit

This looks good Bart. Please commit.

comment:5 Changed 8 years ago by bartvde

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

(In [1344]) add filter option for legend panel, so that e.g. base layers can be hidden from the legend, r=ahocevar (closes #135)

Note: See TracTickets for help on using tickets.