Opened 12 years ago
Closed 12 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)
Change History (2)
by , 12 years ago
Attachment: | MainForm.cs.patch added |
---|
comment:1 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed r7389. Thanks for the patch.
Note:
See TracTickets
for help on using tickets.
enhancement patch for #2223