Opened 11 years ago

Closed 11 years ago

#2223 closed enhancement (fixed)

Maestro RtMapInspector: No legend label for layers not visible in legend

Reported by: gBecker Owned by: jng
Priority: low Milestone: Maestro-5.0
Component: Maestro Version: 2.4.0
Severity: trivial Keywords:
Cc: External ID:

Description

Layers that are set to not show up in the legend have no display text in the treeview. I don't know if it is a shortcoming of the runtimemap in Maestro and could be fixed there. If not, I would propose to easily use the name of the layer to display in the treeview:

I changed line 495

var node = new TreeNode(layer.LegendLabel);

to

var node = new TreeNode((layer.LegendLabel!=String.Empty) ? layer.LegendLabel : String.Format("[{0}]",layer.Name));

I use brackets here to show the difference between layers that are visible and layers that are not visible. Maybe there is a better approach: display text in italic or greyed out.

Attachments (1)

MainForm.cs.patch (630 bytes ) - added by gBecker 11 years ago.
enhancement patch for #2223

Download all attachments as: .zip

Change History (2)

by gBecker, 11 years ago

Attachment: MainForm.cs.patch added

enhancement patch for #2223

comment:1 by jng, 11 years ago

Resolution: fixed
Status: newclosed

Fixed r7389. Thanks for the patch.

Note: See TracTickets for help on using tickets.