[Mapguide-trac] [mapguide-trac] #2223: Maestro RtMapInspector: No legend label for layers not visible in legend

MapGuide Open Source trac_mapguide at osgeo.org
Fri Feb 22 07:20:34 PST 2013


#2223: Maestro RtMapInspector: No legend label for layers not visible in legend
---------------------------+------------------------------------------------
   Reporter:  gBecker      |       Owner:  jng        
       Type:  enhancement  |      Status:  new        
   Priority:  low          |   Milestone:  Maestro-5.0
  Component:  Maestro      |     Version:  2.4.0      
   Severity:  trivial      |    Keywords:             
External_id:               |  
---------------------------+------------------------------------------------
 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.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2223>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list