I found the problem. When you are adding a layer to a map in mg-desktop it has to be a MgdLayer, not a MgLayerBase as I was using.
The error came from the MgLegend, beacuse when I sent nothing instead of a MgLegend component to the MapViewerController the exception was not thrown. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mg-desktop-and-adding-layers-tp5207736p5207769.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
