[mapguide-users] Layer does not appear in legend

Greg gbneff at cid.utah.gov
Tue Mar 15 18:51:38 EDT 2011


MGOS 2.2 Beta
Windows 7 64 bit
iis 7.5
.net 2.0

I have added a new feature source and layer to a map session.  I have added
features to the feature source and they are displaying correctly on the map. 
The layer group and layer they are added to, however, do not show in the
legend.  I am creating the layer from an xml file.  If I test by changing
the styling of the layer, for example the color, the color of the features
changes accordingly.  So it appears the layer is added, it's just not
displaying in the legend.  If I manually refresh the layer pane, still
nothing.  SetDisplayInLegend is true for the layer and the layer group. 
Does anyone know why this might occur?

Here is my code:    
http://osgeo-org.1803224.n2.nabble.com/file/n6174605/FindTruckRouteResult.aspx
FindTruckRouteResult.aspx 

The layer and layer group are added near the bottom of the page.

Thanks,

Greg

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Layer-does-not-appear-in-legend-tp6174605p6174605.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list